Pin X buffer with DD and use proper abstraction in buffer ops
commit6e14d4ac53005414580659a7224310a0688a9f4e
authorAlan Gray <alang@nvidia.com>
Tue, 30 Apr 2019 10:18:03 +0000 (30 03:18 -0700)
committerMark Abraham <mark.j.abraham@gmail.com>
Wed, 22 May 2019 18:53:45 +0000 (22 20:53 +0200)
tree2b717179e0164095497b0cc78779e2027d310828
parent9402521ea63a0db0ae4a43f870d9154e090e9c3e
Pin X buffer with DD and use proper abstraction in buffer ops

This patch fixes an issue that the coordinate buffer was not being
pinned with DD, and replaces a raw cudaMemcpy call in the buffer ops
routine with proper abstraction through the copyToDeviceBuffer API.

Follow up to Gerrit change 9169
Implements part of #2934

Change-Id: I64aec66157ceb5eb04bcfd7cfe24b6ea5c18e4ae
src/gromacs/mdrun/md.cpp
src/gromacs/nbnxm/cuda/nbnxm_cuda.cu