Introduce DeviceStreamManager
authorArtem Zhmurov <zhmurov@gmail.com>
Thu, 20 Feb 2020 15:50:29 +0000 (16:50 +0100)
committerMark Abraham <mark.j.abraham@gmail.com>
Mon, 23 Mar 2020 03:46:37 +0000 (04:46 +0100)
commit99f4253d50d564744ab7f90e5d31071eb01e14fd
tree3de0dced14110d4b8aeef4e37bbe50120bd7830e
parent0f080f595e4006234d30b08eb609cb015ee808df
Introduce DeviceStreamManager

Make a separate object that will be handling the creation,
management and destruction of the GPU context and streams.
It is detached from the rest of the code in this patch,
but will be attached in the follow-up.

Refs #3316
Refs #3311

Change-Id: I2c59b930ac266d89fafe9e0172b83f07e9858f0b
src/gromacs/gpu_utils/CMakeLists.txt
src/gromacs/gpu_utils/device_stream.cpp
src/gromacs/gpu_utils/device_stream_manager.cpp [new file with mode: 0644]
src/gromacs/gpu_utils/device_stream_manager.h [new file with mode: 0644]
src/gromacs/gpu_utils/tests/CMakeLists.txt
src/gromacs/gpu_utils/tests/device_stream_manager.cpp [new file with mode: 0644]
src/gromacs/gpu_utils/tests/gputest.cpp
src/gromacs/gpu_utils/tests/gputest.h
src/gromacs/gpu_utils/tests/hostallocator.cpp
src/gromacs/gpu_utils/tests/pinnedmemorychecker.cpp