Do not run PinnedMemoryCheckerTest when there are no CUDA-capable devices
authorArtem Zhmurov <zhmurov@gmail.com>
Mon, 21 Sep 2020 08:26:52 +0000 (08:26 +0000)
committerPaul Bauer <paul.bauer.q@gmail.com>
Mon, 21 Sep 2020 08:26:52 +0000 (08:26 +0000)
commitb216933babd4f350830f55523f354f81d8728a0d
tree62fee066cc32ee9d824febe2d69307e92cbca7b7
parent1159d79dae3a838cf373486e53f053977b724fb5
Do not run PinnedMemoryCheckerTest when there are no CUDA-capable devices

If there are no CUDA devices in the system, cudaPointerGetAttributes(...)
CUDA API call returns an error. This causes the GPU Utils tests to fail
with fatal error.

Fixes #3679
src/gromacs/gpu_utils/tests/pinnedmemorychecker.cpp
src/testutils/test_hardware_environment.h