Improve handling of CUDA API errors
authorArtem Zhmurov <zhmurov@gmail.com>
Tue, 24 Nov 2020 08:02:48 +0000 (08:02 +0000)
committerPaul Bauer <paul.bauer.q@gmail.com>
Tue, 24 Nov 2020 08:02:48 +0000 (08:02 +0000)
commita30cf2a9ff42e025590f2c27b3d57715ae25dc9c
tree41e8ec69a0044a10d95ba86db98e1419a452945d
parente10c7a359d517e98a7d8e03d546e37a8fd1ffefa
Improve handling of CUDA API errors

Consolidate the construction of the printed error message in one
place and make sure that the CUDA API information on error is
printed when the error is detected.
12 files changed:
src/gromacs/gpu_utils/cudautils.cuh
src/gromacs/gpu_utils/device_stream.cu
src/gromacs/gpu_utils/devicebuffer.cuh
src/gromacs/gpu_utils/gpu_utils.cu
src/gromacs/gpu_utils/gpueventsynchronizer.cuh
src/gromacs/gpu_utils/pinning.cu
src/gromacs/gpu_utils/pmalloc_cuda.cu
src/gromacs/gpu_utils/tests/devicetransfers.cu
src/gromacs/hardware/device_management.cu
src/gromacs/mdlib/leapfrog_gpu.cu
src/gromacs/mdlib/lincs_gpu.cu
src/gromacs/mdlib/settle_gpu.cu