SYCL: Use acc.bind(cgh) instead of cgh.require(acc)
[alexxy/gromacs.git] / src / gromacs / nbnxm / sycl / nbnxm_gpu_buffer_ops_internal_sycl.cpp
index d95bd6f06afec370b906665ba7e8574f28a28280..b4cda5e263d2c1f3584fd7c94a3e43bb959a1010 100644 (file)
@@ -76,11 +76,11 @@ static auto nbnxmKernelTransformXToXq(cl::sycl::handler&                       c
                                       int                                      numAtomsPerCell,
                                       int                                      columnsOffset)
 {
-    cgh.require(a_xq);
-    cgh.require(a_x);
-    cgh.require(a_atomIndex);
-    cgh.require(a_numAtoms);
-    cgh.require(a_cellIndex);
+    a_xq.bind(cgh);
+    a_x.bind(cgh);
+    a_atomIndex.bind(cgh);
+    a_numAtoms.bind(cgh);
+    a_cellIndex.bind(cgh);
 
     return [=](cl::sycl::id<2> itemIdx) {
         // Map cell-level parallelism to y component of block index.