Unify CUDA and OpenCL lookup-table creation
commit1ced5fb7a39a90ec1866f7ee9302438f1e2db8f3
authorArtem Zhmurov <zhmurov@gmail.com>
Thu, 16 Apr 2020 11:38:32 +0000 (16 11:38 +0000)
committerMark Abraham <mark.j.abraham@gmail.com>
Thu, 16 Apr 2020 11:38:32 +0000 (16 11:38 +0000)
tree7fe0ef7bdd5b2f2df1c1010b883e36334336d84d
parent8cf8ae9b788e9d684a9d49948d37dcc00ad3a4af
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/ewald/pme.cuh
src/gromacs/ewald/pme_gpu_internal.cpp
src/gromacs/ewald/pme_gpu_types.h
src/gromacs/gpu_utils/cudautils.cu
src/gromacs/gpu_utils/cudautils.cuh
src/gromacs/gpu_utils/devicebuffer.cuh
src/gromacs/gpu_utils/devicebuffer_ocl.h
src/gromacs/nbnxm/cuda/nbnxm_cuda_data_mgmt.cu
src/gromacs/nbnxm/opencl/nbnxm_ocl_data_mgmt.cpp