Unify CUDA and OpenCL lookup-table creation
authorArtem Zhmurov <zhmurov@gmail.com>
Mon, 4 May 2020 17:44:01 +0000 (17:44 +0000)
committerMark Abraham <mark.j.abraham@gmail.com>
Mon, 4 May 2020 17:44:01 +0000 (17:44 +0000)
commit5f8899ba4bca7b8d158242e1b426fc7f9fcbe787
tree72ba4101f3104ec84a56bcf88233ac859f13e454
parent653fef1d5537599070c07fa6d239d7b7e04bdfea
Unify CUDA and OpenCL lookup-table creation

In CUDA code, textures are used for the lookup-tables,
whereas in OpenCL they are created as a read-only
buffers. This commit hides these differences behind a
unified wrapper.

Refs #3318
Refs #3311

Change-Id: I003e0c982c2452a2753e331b46fc59f0b7e1b711
src/gromacs/gpu_utils/CMakeLists.txt
src/gromacs/gpu_utils/cudautils.cuh
src/gromacs/gpu_utils/devicebuffer.cuh
src/gromacs/nbnxm/cuda/nbnxm_cuda.cu
src/gromacs/nbnxm/cuda/nbnxm_cuda_data_mgmt.cu