From 6e910d95201a24201b88383a620e880c58c00645 Mon Sep 17 00:00:00 2001 From: Sameer Sheorey Date: Wed, 4 Dec 2024 14:14:29 -0800 Subject: [PATCH] Fix sycl tests --- cpp/open3d/core/SYCLUtils.cpp | 3 ++- python/test/open3d_test.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cpp/open3d/core/SYCLUtils.cpp b/cpp/open3d/core/SYCLUtils.cpp index 94527cf89f5..d92e44fe509 100644 --- a/cpp/open3d/core/SYCLUtils.cpp +++ b/cpp/open3d/core/SYCLUtils.cpp @@ -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 diff --git a/python/test/open3d_test.py b/python/test/open3d_test.py index c24f187eb9c..f72a14ec58d 100755 --- a/python/test/open3d_test.py +++ b/python/test/open3d_test.py @@ -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