Move pmalloc(..)/pfree(...) to separate source files in CUDA/OpenCL/SYCL
authorArtem Zhmurov <zhmurov@gmail.com>
Mon, 15 Mar 2021 16:57:02 +0000 (19:57 +0300)
committerArtem Zhmurov <zhmurov@gmail.com>
Mon, 15 Mar 2021 16:57:02 +0000 (19:57 +0300)
commite537c5d2ed5407d72f5312ec7f19cb80556deeb9
tree4e1515b14a885a37596073ae1eff197c595da69a
parentac8cae075ef61a6f5442e65c4dd3082a2267769d
Move pmalloc(..)/pfree(...) to separate source files in CUDA/OpenCL/SYCL

Having pmalloc(..) and pfree(..) functions in unrelated files in CUDA,
OpenCL and SYCL makes it hard to use these functions in platform-agnostic
code. This creates common header and moves these functions to separate
source files.
14 files changed:
src/gromacs/ewald/pme_gpu_internal.cpp
src/gromacs/gpu_utils/CMakeLists.txt
src/gromacs/gpu_utils/gpu_utils.cu
src/gromacs/gpu_utils/oclutils.cpp
src/gromacs/gpu_utils/oclutils.h
src/gromacs/gpu_utils/pmalloc.cu [moved from src/gromacs/gpu_utils/pmalloc_cuda.cu with 78% similarity]
src/gromacs/gpu_utils/pmalloc.h [moved from src/gromacs/gpu_utils/pmalloc_cuda.h with 85% similarity]
src/gromacs/gpu_utils/pmalloc_ocl.cpp [new file with mode: 0644]
src/gromacs/gpu_utils/pmalloc_sycl.cpp [moved from src/gromacs/gpu_utils/syclutils.cpp with 96% similarity]
src/gromacs/gpu_utils/syclutils.h
src/gromacs/gpu_utils/tests/pinnedmemorychecker.cpp
src/gromacs/nbnxm/cuda/nbnxm_cuda_data_mgmt.cu
src/gromacs/nbnxm/opencl/nbnxm_ocl_data_mgmt.cpp
src/gromacs/nbnxm/sycl/nbnxm_sycl_data_mgmt.cpp