Add checks for inefficient resource usage
authorBerk Hess <hess@kth.se>
Fri, 24 Apr 2015 13:27:27 +0000 (15:27 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Tue, 30 Jun 2015 09:51:03 +0000 (11:51 +0200)
commit341fe0c76adba4b92e77c3a6855e11128647141b
tree56eb3317e21cd3f3b5ea41a8a3ef06ccf0e3e907
parentf82f9d7b2aa46f48f692512a02e871a58c0eca12
Add checks for inefficient resource usage

Checks have been added for using too many OpenMP threads and when
using GPUs for using single OpenMP thread. A fatal error is generated
in case where we are quite sure performance is very sub-optimal. This
is nasty, but a fatal error is the only way to ensure that users don't
ignore this warning. The fatal error can be circumvented by explicitly
setting -ntomp, in that case a note is printed to log and stderr.

Now also avoids ranks counts with thread-MPI that don't fit with the
total number of threads requested.

With a GPU without DD thread count limit is now doubled.

Disabled GPU sharing with OpenCL.

Change-Id: Ib2d892dbac3d5716246fbfdb2e8f246cdc169787
src/gromacs/legacyheaders/mdrun.h
src/programs/mdrun/mdrun.cpp
src/programs/mdrun/resource-division.cpp
src/programs/mdrun/resource-division.h
src/programs/mdrun/runner.cpp