DeviceBuffer headers are added
authorAleksei Iupinov <a.yupinov@gmail.com>
Tue, 13 Feb 2018 12:08:13 +0000 (13:08 +0100)
committerMark Abraham <mark.j.abraham@gmail.com>
Mon, 23 Apr 2018 09:22:47 +0000 (11:22 +0200)
commit59ebd3a3bb4a148f5406df7a122f9e955eead120
tree9e24ddae9c8e6b013f8745059caaee324cf6f380
parent1f866cc5a15b78fb753beb4a4625fec93d37d556
DeviceBuffer headers are added

For now they contain templated versions of GPU memory (re-)allocation
and host-to-device copy routines. The DeviceBuffer declarations
and the freeDeviceBuffer() implementations are moved there as well.
Using those, the GPU pairlist allocation code is made look
mostly the same in CUDA and OpenCL. ocl_realloc_buffered() is
removed; cu_realloc_buffered() is to go next.

Change-Id: Ic724113d7d0ed6b4707d094010e11ccbcd5da3c5
16 files changed:
src/gromacs/ewald/pme.cu
src/gromacs/gpu_utils/cudautils.cu
src/gromacs/gpu_utils/cudautils.cuh
src/gromacs/gpu_utils/devicebuffer.cuh [new file with mode: 0644]
src/gromacs/gpu_utils/devicebuffer.h [new file with mode: 0644]
src/gromacs/gpu_utils/devicebuffer_ocl.h [new file with mode: 0644]
src/gromacs/gpu_utils/gpu_utils.cu
src/gromacs/gpu_utils/gpu_utils.h
src/gromacs/gpu_utils/gpuregiontimer.cuh
src/gromacs/gpu_utils/gputraits.cuh
src/gromacs/gpu_utils/gputraits_ocl.h
src/gromacs/gpu_utils/oclutils.h
src/gromacs/mdlib/nbnxn_cuda/nbnxn_cuda_data_mgmt.cu
src/gromacs/mdlib/nbnxn_cuda/nbnxn_cuda_types.h
src/gromacs/mdlib/nbnxn_ocl/nbnxn_ocl_data_mgmt.cpp
src/gromacs/mdlib/nbnxn_ocl/nbnxn_ocl_types.h