Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,13 @@ class PersistentDeviceCodeCache
SYCLCachePersistentChanged = true;
}

virtual void SetUp() {
void SetUp() override {
EXPECT_NE(getenv("SYCL_CACHE_DIR"), nullptr)
<< "Please set SYCL_CACHE_DIR environment variable pointing to cache "
"location.";
// Set binary format from parameter.
BinStruct.Format = GetParam();
}

virtual void TearDown() {
void TearDown() override {
// If we changed the cache, set it back to the old value.
if (SYCLCachePersistentChanged)
SetSYCLCachePersistentEnv(SYCLCachePersistentBefore
Expand Down Expand Up @@ -202,10 +200,9 @@ class PersistentDeviceCodeCache
detail::OSModuleHandle ModuleHandle = detail::OSUtil::ExeModuleHandle;
platform Plt;
device Dev;
// NOTE: Format is a parameter of the test so use none and set in SetUp.
pi_device_binary_struct BinStruct{/*Version*/ 1,
/*Kind*/ 4,
/*Format*/ PI_DEVICE_BINARY_TYPE_NONE,
/*Format*/ GetParam(),
/*DeviceTargetSpec*/ nullptr,
/*CompileOptions*/ nullptr,
/*LinkOptions*/ nullptr,
Expand Down