Work around hipSYCL buffer reinterpret error
[alexxy/gromacs.git] / src / gromacs / gpu_utils / devicebuffer_sycl.h
index 743b9ea78522f33315b46cbd9a15db685d955b6c..97a3d53cdf38fd56bb0624afc863b53e5a6178e9 100644 (file)
@@ -456,9 +456,11 @@ inline cl::sycl::event fillSyclBufferWithNull(cl::sycl::buffer<Float3, 1>& buffe
     }
     else // When not using hipSYCL, reinterpret as a flat float array
     {
+#ifndef __HIPSYCL__
         cl::sycl::buffer<float, 1> bufferAsFloat = buffer.reinterpret<float, 1>(buffer.get_count() * DIM);
         return fillSyclBufferWithNull<float>(
                 bufferAsFloat, startingOffset * DIM, numValues * DIM, std::move(queue));
+#endif
     }
 }