Split canDetectGpus()
authorBerk Hess <hess@kth.se>
Mon, 22 Jul 2019 09:24:35 +0000 (11:24 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Thu, 25 Jul 2019 14:25:23 +0000 (16:25 +0200)
commit6cebf79cf858982922edc4d582a12cbb9a613e51
treef2066c1732b24be9f15a8d35eca8ff3f4c41f359
parentfa960d5b36b514b627613dbe2f37bb5bac036ce3
Split canDetectGpus()

The function canDetectGpus() was used in a higher and lower level
fashion. The original canDetectGpus() is renamed to
isGpuDetectionFunctional(). Added canPerformGpuDetection() which also
checks for a GPU build and the env.var. GMX_DISABLE_GPU_DETECTION.

This also fixes an inconsistency error in the PME GPU unit tests
when running with GMX_DISABLE_GPU_DETECTION.

Change-Id: If762b2a108eedeb1bda0a2af9afa8a418aa93e14
src/gromacs/gpu_utils/gpu_utils.cpp
src/gromacs/gpu_utils/gpu_utils.cu
src/gromacs/gpu_utils/gpu_utils.h
src/gromacs/gpu_utils/gpu_utils_ocl.cpp
src/gromacs/gpu_utils/tests/gputest.cpp
src/gromacs/hardware/detecthardware.cpp
src/gromacs/mdlib/tests/constr.cpp
src/gromacs/mdlib/tests/leapfrog.cpp
src/gromacs/mdlib/tests/settle.cpp
src/programs/mdrun/tests/pmetest.cpp