Skip to content

Commit 34dd515

Browse files
committed
[SYCL] fix unit tests
Set SYCL_CACHE_DIR to current directory to make sure that cache is enabled in all environments.
1 parent 8630fe2 commit 34dd515

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sycl/unittests/kernel-and-program/PersistentDeviceCodeCache.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ class PersistenDeviceCodeCache : public ::testing::Test {
9191
return;
9292
}
9393

94+
set_env("SYCL_CACHE_DIR", ".");
95+
9496
Mock = std::make_unique<unittest::PiMock>(Plt);
9597
Dev = Plt.get_devices()[0];
9698
Mock->redefine<detail::PiApiKind::piProgramGetInfo>(

0 commit comments

Comments
 (0)