SYCL: Use acc.bind(cgh) instead of cgh.require(acc)
[alexxy/gromacs.git] / src / gromacs / mdlib / update_constrain_gpu_internal_sycl.cpp
index f7113a203fdbc55bf765052ad94dbb71b73cc3a1..12f60ea7ee11360c751ee1ff76a583fb3ae8d29c 100644 (file)
@@ -60,7 +60,7 @@ static auto scaleKernel(cl::sycl::handler&
                         DeviceAccessor<Float3, cl::sycl::access::mode::read_write> a_x,
                         const ScalingMatrix                                        scalingMatrix)
 {
-    cgh.require(a_x);
+    a_x.bind(cgh);
 
     return [=](cl::sycl::id<1> itemIdx) {
         Float3 x     = a_x[itemIdx];