Conditionally pin GPU-related grid data
authorSzilárd Páll <pall.szilard@gmail.com>
Mon, 15 Jul 2019 11:26:36 +0000 (13:26 +0200)
committerBerk Hess <hess@kth.se>
Mon, 22 Jul 2019 08:10:11 +0000 (10:10 +0200)
commitc8951db1f0dbbebf891ccc9c3dce9dc0f68c4df5
tree827ce53630b7508113e8d74828da1d6d5135319b
parent8e83edea6ef6a77c059f913c77eb3834f87f6abc
Conditionally pin GPU-related grid data

Data that is transferred to the GPU when the buffer ops is offloaded is
now only pinned when the nonbonded module uses GPU offload avoidign the
runtime errors encountered when a GPU-enabled build does not detect a
GPU and therefore the CUDA runtime refuses to register the memory.

Refs #2817 #2934

Change-Id: Iabbc0d9f37fad0e88cd39a078af1346e8f713ec1
src/gromacs/nbnxm/grid.cpp
src/gromacs/nbnxm/grid.h
src/gromacs/nbnxm/gridset.cpp
src/gromacs/nbnxm/gridset.h
src/gromacs/nbnxm/nbnxm_setup.cpp
src/gromacs/nbnxm/pairsearch.cpp
src/gromacs/nbnxm/pairsearch.h