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
/
ewald
/
pme_gather_sycl.cpp
diff --git
a/src/gromacs/ewald/pme_gather_sycl.cpp
b/src/gromacs/ewald/pme_gather_sycl.cpp
index b03a7804b38e7b608220075f4299ab623b1b48ee..d133daaeeaa5acc4668366aa26bd347f9bd44fca 100644
(file)
--- a/
src/gromacs/ewald/pme_gather_sycl.cpp
+++ b/
src/gromacs/ewald/pme_gather_sycl.cpp
@@
-284,27
+284,27
@@
auto pmeGatherKernel(cl::sycl::handler& cgh,
constexpr int splineParamsSize = atomsPerBlock * DIM * order;
constexpr int gridlineIndicesSize = atomsPerBlock * DIM;
constexpr int splineParamsSize = atomsPerBlock * DIM * order;
constexpr int gridlineIndicesSize = atomsPerBlock * DIM;
-
cgh.require(a_gridA
);
-
cgh.require(a_coefficientsA
);
-
cgh.require(a_forces
);
+
a_gridA.bind(cgh
);
+
a_coefficientsA.bind(cgh
);
+
a_forces.bind(cgh
);
if constexpr (numGrids == 2)
{
if constexpr (numGrids == 2)
{
-
cgh.require(a_gridB
);
-
cgh.require(a_coefficientsB
);
+
a_gridB.bind(cgh
);
+
a_coefficientsB.bind(cgh
);
}
if constexpr (readGlobal)
{
}
if constexpr (readGlobal)
{
-
cgh.require(a_theta
);
-
cgh.require(a_dtheta
);
-
cgh.require(a_gridlineIndices
);
+
a_theta.bind(cgh
);
+
a_dtheta.bind(cgh
);
+
a_gridlineIndices.bind(cgh
);
}
else
{
}
else
{
-
cgh.require(a_coordinates
);
-
cgh.require(a_fractShiftsTable
);
-
cgh.require(a_gridlineIndicesTable
);
+
a_coordinates.bind(cgh
);
+
a_fractShiftsTable.bind(cgh
);
+
a_gridlineIndicesTable.bind(cgh
);
}
// Gridline indices, ivec
}
// Gridline indices, ivec