Simplify resource-division efficiency check
commit6a350e9bd13b7d5da0a96e93ab62d57abb8ff586
authorMark Abraham <mark.j.abraham@gmail.com>
Fri, 4 Aug 2017 14:11:16 +0000 (4 16:11 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Sun, 6 Aug 2017 22:44:35 +0000 (7 00:44 +0200)
treee0c1077c64022a03307a7b1e808581aa9fb1cff6
parente43e83bfb17b6261d5e336c147a3d06d9ca9c73a
Simplify resource-division efficiency check

The code only needs a boolean result of whether any rank is using a
GPU, not a sum of GPUs used or GPU tasks present, or whatever.

It also doesn't need to be coupled to the implementation of
gmx_hw_opt_t.

One assertion was redundant with an earlier check.

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