From: Szilárd Páll Date: Tue, 8 Jun 2021 14:40:14 +0000 (+0000) Subject: Work around hipSYCL buffer reinterpret error X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=c539e2bf2fa267cf06f5f1b36939f0b7c4e37273;p=alexxy%2Fgromacs.git Work around hipSYCL buffer reinterpret error --- diff --git a/src/gromacs/gpu_utils/devicebuffer_sycl.h b/src/gromacs/gpu_utils/devicebuffer_sycl.h index 743b9ea785..97a3d53cdf 100644 --- a/src/gromacs/gpu_utils/devicebuffer_sycl.h +++ b/src/gromacs/gpu_utils/devicebuffer_sycl.h @@ -456,9 +456,11 @@ inline cl::sycl::event fillSyclBufferWithNull(cl::sycl::buffer& buffe } else // When not using hipSYCL, reinterpret as a flat float array { +#ifndef __HIPSYCL__ cl::sycl::buffer bufferAsFloat = buffer.reinterpret(buffer.get_count() * DIM); return fillSyclBufferWithNull( bufferAsFloat, startingOffset * DIM, numValues * DIM, std::move(queue)); +#endif } }