Ensure PME with OpenCL does not attempt to pin
authorAleksei Iupinov <a.yupinov@gmail.com>
Fri, 18 May 2018 16:33:04 +0000 (18:33 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Thu, 14 Jun 2018 06:44:35 +0000 (08:44 +0200)
commitabb0e3c6df03e7357eba8468f15adf0ef6cc0042
tree0865865cdab85998a762c76375c2fa28992e9393
parent4e35ec4f3999c8dc6bb51697e1bedffd96203177
Ensure PME with OpenCL does not attempt to pin

Host-only memory pinning was designed with CUDA in mind, while OpenCL
requires managing both host and device memory buffer for efficient
mapping, which is not yet implemented.

This change teaches the PME module to understand what pinning policy
is appropriate to the build configuration, so that the setup of data
structures in various parts of the code can use a pinning policy that
always works.

Refs #2498

Change-Id: I2a294aee460947cd3aad5e23869cead1b99fd610
src/gromacs/ewald/pme-gpu-internal.cpp
src/gromacs/ewald/pme-only.cpp
src/gromacs/ewald/pme.cpp
src/gromacs/ewald/pme.h
src/gromacs/mdlib/mdatoms.cpp
src/gromacs/mdlib/mdatoms.h
src/gromacs/mdrun/runner.cpp