@@ -104,8 +104,16 @@ bool FixedRadiusIndex::SetTensorData(const Tensor &dataset_points,
104104 CALL_BUILD (double , BuildSpatialHashTableCUDA)
105105#else
106106 utility::LogError (
107- " -DBUILD_CUDA_MODULE=OFF. Please compile Open3d with "
107+ " -DBUILD_CUDA_MODULE=OFF. Please compile Open3D with "
108108 " -DBUILD_CUDA_MODULE=ON." );
109+ #endif
110+ } else if (device.IsSYCL ()) {
111+ #ifdef BUILD_SYCL_MODULE
112+ return true ;
113+ #else
114+ utility::LogError (
115+ " -DBUILD_SYCL_MODULE=OFF. Please compile Open3D with "
116+ " -DBUILD_SYCL_MODULE=ON." );
109117#endif
110118 } else {
111119 CALL_BUILD (float , BuildSpatialHashTableCPU)
@@ -171,8 +179,18 @@ std::tuple<Tensor, Tensor, Tensor> FixedRadiusIndex::SearchRadius(
171179 });
172180#else
173181 utility::LogError (
174- " -DBUILD_CUDA_MODULE=OFF. Please compile Open3d with "
182+ " -DBUILD_CUDA_MODULE=OFF. Please compile Open3D with "
175183 " -DBUILD_CUDA_MODULE=ON." );
184+ #endif
185+ } else if (device.IsSYCL ()) {
186+ #ifdef BUILD_SYCL_MODULE
187+ DISPATCH_FLOAT_INT_DTYPE_TO_TEMPLATE (dtype, index_dtype, [&]() {
188+ FixedRadiusSearchSYCL<scalar_t , int_t >(RADIUS_PARAMETERS);
189+ });
190+ #else
191+ utility::LogError (
192+ " -DBUILD_SYCL_MODULE=OFF. Please compile Open3D with "
193+ " -DBUILD_SYCL_MODULE=ON." );
176194#endif
177195 } else {
178196 DISPATCH_FLOAT_INT_DTYPE_TO_TEMPLATE (dtype, index_dtype, [&]() {
@@ -240,8 +258,18 @@ std::tuple<Tensor, Tensor, Tensor> FixedRadiusIndex::SearchHybrid(
240258 });
241259#else
242260 utility::LogError (
243- " -DBUILD_CUDA_MODULE=OFF. Please compile Open3d with "
261+ " -DBUILD_CUDA_MODULE=OFF. Please compile Open3D with "
244262 " -DBUILD_CUDA_MODULE=ON." );
263+ #endif
264+ } else if (device.IsSYCL ()) {
265+ #ifdef BUILD_SYCL_MODULE
266+ DISPATCH_FLOAT_INT_DTYPE_TO_TEMPLATE (dtype, index_dtype, [&]() {
267+ HybridSearchSYCL<scalar_t , int_t >(HYBRID_PARAMETERS);
268+ });
269+ #else
270+ utility::LogError (
271+ " -DBUILD_SYCL_MODULE=OFF. Please compile Open3D with "
272+ " -DBUILD_SYCL_MODULE=ON." );
245273#endif
246274 } else {
247275 DISPATCH_FLOAT_INT_DTYPE_TO_TEMPLATE (dtype, index_dtype, [&]() {
0 commit comments