Require -ntmpi with setting -ntomp with GPUs
commitf10d33f1efaece61a3691bb1b7941a8565d2e8cf
authorBerk Hess <hess@kth.se>
Tue, 12 Dec 2017 15:10:08 +0000 (12 16:10 +0100)
committerBerk Hess <hess@kth.se>
Thu, 14 Dec 2017 09:59:03 +0000 (14 10:59 +0100)
tree4c5fe5cc8f12c93bff1443fd43bbcf534a57dc5d
parentc98e6fc7d81638c3c2067478390ddeed4f17978f
Require -ntmpi with setting -ntomp with GPUs

With GPUs and thread-MPI, setting only -ntomp could lead to
oversubscription of the hardware threads.
Now with GPUs and thread-MPI the user is required to set -ntmpi when
using -ntomp. Here we chose that to also require -ntmpi when the user
specified both -nt and -ntomp; here we could infer the number of
ranks, but it's safer to ask the user to explicity set -ntmpi.
Note that specifying both -ntmpi and -nt has always worked correctly.

Fixes #2348

Change-Id: Iad380721807f5c53b8c70808cea75c5f29341a8f
src/programs/mdrun/resource-division.cpp