biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SYCL: Use acc.bind(cgh) instead of cgh.require(acc)
[alexxy/gromacs.git]
/
src
/
gromacs
/
nbnxm
/
sycl
/
nbnxm_gpu_buffer_ops_internal_sycl.cpp
diff --git
a/src/gromacs/nbnxm/sycl/nbnxm_gpu_buffer_ops_internal_sycl.cpp
b/src/gromacs/nbnxm/sycl/nbnxm_gpu_buffer_ops_internal_sycl.cpp
index d95bd6f06afec370b906665ba7e8574f28a28280..b4cda5e263d2c1f3584fd7c94a3e43bb959a1010 100644
(file)
--- a/
src/gromacs/nbnxm/sycl/nbnxm_gpu_buffer_ops_internal_sycl.cpp
+++ b/
src/gromacs/nbnxm/sycl/nbnxm_gpu_buffer_ops_internal_sycl.cpp
@@
-76,11
+76,11
@@
static auto nbnxmKernelTransformXToXq(cl::sycl::handler& c
int numAtomsPerCell,
int columnsOffset)
{
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.
return [=](cl::sycl::id<2> itemIdx) {
// Map cell-level parallelism to y component of block index.