Replace consistency checking with assertion
commita51b6feb189d8797bf8931901d591038b88ab3b1
authorMark Abraham <mark.j.abraham@gmail.com>
Tue, 8 Aug 2017 01:14:10 +0000 (8 03:14 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Thu, 17 Aug 2017 07:52:41 +0000 (17 09:52 +0200)
tree26d8e3aa5505f339f26742624ddb694e8e4695ca
parent0e49e1983d6eb51adb3c3cb3e0ba73fe446d9bdf
Replace consistency checking with assertion

The checks intended for checking that the automatic choice of number
of thread-MPI ranks have never worked, because we over-write the
user's choice of hw_opt->nthreads_tmpi. Fixed that by handling those
sub-cases properly by requiring that the number of GPU IDs supplied
matches the number of ranks chosen in all the cases, and asserting on
that.

Even if we would fix the over-writing issue, all of the former
consistency checks amount to an assertion that the previous code has
chosen a number of GPU tasks on each node (in gpu_opt.dev_use) that
matches the number of PP ranks on that node, which can be done in many
fewer lines of code.

Note that the checking did not have a SIMD-related behaviour, and
since the way domains communicate is SIMD-agnostic, it's unclear that
such a check would be useful.

Change-Id: Iea85bb4c297c5ce60c8e25d95a87fe9d9bce6686
src/gromacs/hardware/detecthardware.cpp
src/programs/mdrun/resource-division.cpp
src/programs/mdrun/runner.cpp