Unify CUDA and OpenCL lookup-table creation
commitd3ce850176c5a33937666773c253bf06c8e8ea3f
authorArtem Zhmurov <zhmurov@gmail.com>
Fri, 15 May 2020 16:38:02 +0000 (15 16:38 +0000)
committerPaul Bauer <paul.bauer.q@gmail.com>
Fri, 15 May 2020 16:38:02 +0000 (15 16:38 +0000)
tree07d04cac8fb73207d09f45ca6c121f1005ca566a
parentf2b7ae68540ec84181c5b3aa1b630391ed5c9633
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/devicebuffer_ocl.h
src/gromacs/nbnxm/opencl/nbnxm_ocl.cpp
src/gromacs/nbnxm/opencl/nbnxm_ocl_data_mgmt.cpp
src/gromacs/nbnxm/opencl/nbnxm_ocl_types.h