Refactor and enable RVec to float conversion test
authorArtem Zhmurov <zhmurov@gmail.com>
Thu, 6 Feb 2020 11:39:39 +0000 (12:39 +0100)
committerPaul Bauer <paul.bauer.q@gmail.com>
Fri, 21 Feb 2020 09:07:40 +0000 (10:07 +0100)
commitdd0439e0a189e0c28e738afe283ce3a71513aaa6
treee82165d45c5dcdcd467215e2caf89ea20dbf1f6f
parent1b60e96ae8d482f0e631d786b8dd71bf833f59fa
Refactor and enable RVec to float conversion test

Since using CUDA directly in Google tests is not always possible,
this patch moves the cuda-specific code into separate runner file.
Also the RVec->float3 casting function is moved into new header,
thus eliminating inclusion of the cuda runtime in the tests. The
test file is renamed to reflect what is actually tested.

Fixes the post submit failure introduced in
c5c220a03663d975e31e8573c1849247ce3f8ad0, which was first avoided
by disabling the test in e91b744e8cbf2038a4dddce0609a33f396902bb5.

Fixes #3372.

Change-Id: Ie6423876e7725766109f74fdd3e76a24188b0b18
src/gromacs/domdec/gpuhaloexchange_impl.cu
src/gromacs/ewald/pme_gather.cu
src/gromacs/ewald/pme_spread.cu
src/gromacs/gpu_utils/cudautils.cuh
src/gromacs/gpu_utils/tests/CMakeLists.txt
src/gromacs/gpu_utils/tests/typecasts.cpp [moved from src/gromacs/gpu_utils/tests/gpu_utils.cpp with 65% similarity]
src/gromacs/gpu_utils/tests/typecasts_runner.cpp [new file with mode: 0644]
src/gromacs/gpu_utils/tests/typecasts_runner.cu [new file with mode: 0644]
src/gromacs/gpu_utils/tests/typecasts_runner.h [new file with mode: 0644]
src/gromacs/gpu_utils/typecasts.cuh [new file with mode: 0644]
src/gromacs/nbnxm/cuda/nbnxm_cuda.cu