Fixed thread-MPI with non-default -npme
commit762c6f0cf02d9fbfcd901a7a97fb83fd9ac547ec
authorMark Abraham <mark.j.abraham@gmail.com>
Tue, 22 Aug 2017 15:09:50 +0000 (22 17:09 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Tue, 22 Aug 2017 15:24:18 +0000 (22 17:24 +0200)
treeed8ab5a3e28d90880d76a50bb7e7dfc5a1c748d9
parent631f7e018462a9e59500846069f9f5b94686af11
Fixed thread-MPI with non-default -npme

Thread-MPI currently defaults to zero PME-only ranks, but should
support non-default specifications.

Enforced that e.g. mdrun -ntmpi 0 -npme 1 -gpu_id 0 is not
supported, because we don't have the ability to decide how
to distribute threads to the different kinds of ranks.

Change-Id: I5f175fc087c10d4268e6d8226ba1628e99d376fc
src/programs/mdrun/resource-division.cpp
src/programs/mdrun/resource-division.h
src/programs/mdrun/runner.cpp