SYCL: Use acc.bind(cgh) instead of cgh.require(acc)
[alexxy/gromacs.git] / src / gromacs / mdlib / update_constrain_gpu_internal_sycl.cpp
index 1843b2f75b871d127bb1ade517e1bdaaa2ec2aae..12f60ea7ee11360c751ee1ff76a583fb3ae8d29c 100644 (file)
@@ -55,11 +55,12 @@ class ScaleKernel;
 namespace gmx
 {
 
+//! \brief Function returning the scaling kernel lambda.
 static auto scaleKernel(cl::sycl::handler&                                         cgh,
                         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];