Skip to content

Commit

Permalink
Fix sycl tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ssheorey committed Dec 4, 2024
1 parent c8856fc commit 6e910d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cpp/open3d/core/SYCLUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,11 @@ void enablePersistentJITCache() {
#else
setenv("SYCL_CACHE_PERSISTENT", "1", 1);
#endif
#endif
#else
utility::LogInfo(
"enablePersistentJITCache is not compiled with "
"BUILD_SYCL_MODULE=ON.");
#endif
}

} // namespace sy
Expand Down
2 changes: 1 addition & 1 deletion python/test/open3d_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def list_devices(enable_cuda=True, enable_sycl=False):
if enable_cuda and o3d.core.cuda.device_count() > 0:
devices.append(o3d.core.Device("CUDA:0"))
if enable_sycl and o3d.core.sycl.is_available():
return devices.append(o3d.core.Device("SYCL:0"))
devices.append(o3d.core.Device("SYCL:0"))
return devices


Expand Down

0 comments on commit 6e910d9

Please sign in to comment.