Move GPU assignment functions into a separate file
commit424a3bd60beb1ea114d8842b4f0630ad655013ed
authorAleksei Iupinov <a.yupinov@gmail.com>
Fri, 28 Oct 2016 11:09:51 +0000 (28 13:09 +0200)
committerSzilárd Páll <pall.szilard@gmail.com>
Thu, 1 Dec 2016 15:51:36 +0000 (1 16:51 +0100)
tree6a83df1b96b204cfc7e1eab5dcccec63e7b726bf
parenteb6ba977d00c551f62b10a486581c9a29e2e175b
Move GPU assignment functions into a separate file

2 GPU assignment functions (gmx_select_gpu_ids() and set_gpu_ids())
are moved from detecthardware.cpp to a new file hardwareassign.cpp
to separate the GPU scheduling from GPU detection. They are also renamed
for clarity: set_gpu_ids() to assign_rank_gpu_ids(),
gmx_select_gpu_ids() to gmx_select_rank_gpu_ids().
Related deprecated function print_gpu_detection_stats() is also moved,
and changed to only print errors in case of heterogenous MPI configurations,
like it was intended to.
sprint_gpus() is refactored.

Change-Id: Ieef402954194e747e4c6dc5535e0652b5f862e28
src/gromacs/hardware/CMakeLists.txt
src/gromacs/hardware/detecthardware.cpp
src/gromacs/hardware/detecthardware.h
src/gromacs/hardware/hardwareassign.cpp [new file with mode: 0644]
src/gromacs/hardware/hardwareassign.h [new file with mode: 0644]
src/programs/mdrun/runner.cpp