Improve handling of GPU IDs
authorMark Abraham <mark.j.abraham@gmail.com>
Wed, 25 Oct 2017 10:08:01 +0000 (12:08 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Wed, 1 Nov 2017 11:11:17 +0000 (12:11 +0100)
commitc263ab1de72196c4c7a43a6447cd0acac10ba568
tree89e56dc050c6a6e3440e15fce357bbaa53b59591
parentfe737565b2bac84d598203348356ac6d93642e1f
Improve handling of GPU IDs

Shifted responsibility for handling parsing of mdrun -gpu_id to early
in the runner, rather than as part of the assignment process.

Moved utility string handling + tests to taskassignment module, since
they only supported this process. Updated string handling in gmx
tune_pme to use more std::string and use the new
functionality. makeGpuIds will be used to replace the code in
assign_rank_gpu_ids in a subsequent patch.

Change-Id: I8d39cc69d0f96ac395858ed7cbe9f2947081b384
14 files changed:
src/gromacs/gmxana/gmx_tune_pme.cpp
src/gromacs/taskassignment/CMakeLists.txt
src/gromacs/taskassignment/hardwareassign.cpp
src/gromacs/taskassignment/hardwareassign.h
src/gromacs/taskassignment/resourcedivision.cpp
src/gromacs/taskassignment/resourcedivision.h
src/gromacs/taskassignment/tests/CMakeLists.txt [new file with mode: 0644]
src/gromacs/taskassignment/tests/usergpuids.cpp [new file with mode: 0644]
src/gromacs/taskassignment/usergpuids.cpp [new file with mode: 0644]
src/gromacs/taskassignment/usergpuids.h [new file with mode: 0644]
src/gromacs/utility/stringutil.cpp
src/gromacs/utility/stringutil.h
src/gromacs/utility/tests/stringutil.cpp
src/programs/mdrun/runner.cpp