Unify CUDA and OpenCL lookup-table creation
authorArtem Zhmurov <zhmurov@gmail.com>
Mon, 11 May 2020 08:31:34 +0000 (08:31 +0000)
committerMark Abraham <mark.j.abraham@gmail.com>
Mon, 11 May 2020 08:31:34 +0000 (08:31 +0000)
commit986b2bb150cd9e2d673e12ebfec2af4afb678069
tree20fa0c813a75936ae3e5b787654c602b5d44f9ca
parentdab12021ea888a27ee9c5386ea531f6d365e4a9e
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/gpu_utils/oclutils.cpp
src/gromacs/gpu_utils/oclutils.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