Unify CUDA and OpenCL lookup-table creation
commitc048437f61b0fd1276917cfc8888798bd091e385
authorArtem Zhmurov <zhmurov@gmail.com>
Tue, 5 May 2020 06:37:33 +0000 (5 06:37 +0000)
committerMark Abraham <mark.j.abraham@gmail.com>
Tue, 5 May 2020 06:37:33 +0000 (5 06:37 +0000)
tree6ca3f2e44d59762cfbb4e0e77d419ca473b65b53
parent5f8899ba4bca7b8d158242e1b426fc7f9fcbe787
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/nbnxm/cuda/nbnxm_cuda_data_mgmt.cu
src/gromacs/nbnxm/cuda/nbnxm_cuda_types.h