Fix SYCL clearDeviceBufferAsync<float3>
authorAndrey Alekseenko <al42and@gmail.com>
Mon, 8 Feb 2021 16:29:55 +0000 (19:29 +0300)
committerMark Abraham <mark.j.abraham@gmail.com>
Tue, 9 Feb 2021 13:48:45 +0000 (13:48 +0000)
commit3a8dc05d1a15656e279524478844990bbe2185ab
tree480f49155a62c500e1bd241fbdc6819c95bdf129
parent8e97087ba208f04eea87e4a53f303fcd04115e13
Fix SYCL clearDeviceBufferAsync<float3>

Per SYCL 1.2.1 and 2020 (provisional), cl::sycl::handler::fill only
works for scalars and SYCL vectors, not custom types, like gmx::RVec. It
actually worked fine on OpenCL CPU and host, but not on OpenCL GPU. So,
a simple wrapper that reinterprets the buffer as array of float's is
added.
src/gromacs/gpu_utils/devicebuffer_sycl.h