Extend GPU traits class
authorMark Abraham <mark.j.abraham@gmail.com>
Fri, 30 Aug 2019 16:27:05 +0000 (18:27 +0200)
committerArtem Zhmurov <zhmurov@gmail.com>
Mon, 7 Oct 2019 15:45:01 +0000 (17:45 +0200)
commit77ac5aae23cb1d6a133e64f2e8fd80ad9d9294e5
tree064ff5eccdcd7768370d4e124922f91ab93e88a1
parent1c341d19bcd7859feafb146356d084d57efe296e
Extend GPU traits class

Now GPU traits provide a non-GPU header, so that generic code
can use CommandStream, CommandEvent and DeviceContext types.
The header also diverges to a platform-specific version when
needed upon compilation. This change allows for passing the
variables of the above types in the general (non-GPU) parts
of the code and can be included where the code is shared
between different platforms.

Renamed a Context variable to DeviceContext for greater clarity.

Change-Id: If21b9dacac66ff7203948eb03de96f9473b7359a
16 files changed:
src/gromacs/ewald/pme_gpu_program_impl.h
src/gromacs/ewald/pme_gpu_types_host_impl.h
src/gromacs/ewald/pme_only.cpp
src/gromacs/gpu_utils/devicebuffer.cuh
src/gromacs/gpu_utils/devicebuffer.h
src/gromacs/gpu_utils/devicebuffer_ocl.h
src/gromacs/gpu_utils/gputraits.cuh
src/gromacs/gpu_utils/gputraits.h [new file with mode: 0644]
src/gromacs/gpu_utils/gputraits_ocl.h
src/gromacs/mdrun/runner.cpp
src/gromacs/mdtypes/state_propagator_data_gpu.h
src/gromacs/mdtypes/state_propagator_data_gpu_impl.cpp
src/gromacs/mdtypes/state_propagator_data_gpu_impl.h
src/gromacs/mdtypes/state_propagator_data_gpu_impl_gpu.cpp
src/gromacs/nbnxm/cuda/nbnxm_cuda_data_mgmt.cu
src/gromacs/nbnxm/opencl/nbnxm_ocl_data_mgmt.cpp