Use HostVector for Grid/GridSet data need on-GPU
authorSzilárd Páll <pall.szilard@gmail.com>
Wed, 24 Apr 2019 12:03:39 +0000 (14:03 +0200)
committerSzilárd Páll <pall.szilard@gmail.com>
Thu, 11 Jul 2019 15:23:10 +0000 (17:23 +0200)
commit3329a50b64be16240ce188cb599687c2d399a4a1
tree440b0c75c18d6d1fa47328bbc130b5c55af0cddb
parentf72ba08ae97d27be199f197da4afa80151f82d86
Use HostVector for Grid/GridSet data need on-GPU

Grid.cxy_na_, Grid.cxy_ind_, GridSet.cells and GridSet.atomIndices
have been converted from std::vector to gmx::HostVector. This allow
the code to pin the HostVector when X buffer ops is used and to
eliminate the hacky pin/unpin in CUDA buffer ops functions.

Part of #2934
Refs #2817

Change-Id: Icca21dd076128ec582f805ed96e253dfab461270
src/gromacs/mdlib/sim_util.cpp
src/gromacs/nbnxm/cuda/nbnxm_cuda_data_mgmt.cu
src/gromacs/nbnxm/grid.cpp
src/gromacs/nbnxm/grid.h
src/gromacs/nbnxm/gridset.cpp
src/gromacs/nbnxm/gridsetdata.h