Do not call PME GPU builder in CPU code paths
authorArtem Zhmurov <zhmurov@gmail.com>
Thu, 20 Feb 2020 08:09:09 +0000 (09:09 +0100)
committerArtem Zhmurov <zhmurov@gmail.com>
Thu, 20 Feb 2020 22:51:22 +0000 (23:51 +0100)
commit1b60e96ae8d482f0e631d786b8dd71bf833f59fa
tree83cea6e5dec267d78f5fce74e4534d09e30481ae
parentda05d32f05b66139d233e49d615f1d1f70d20352
Do not call PME GPU builder in CPU code paths

Currently, the logic of whether or not to execute the PME GPU builder
in tests relies on passing nullptr in CPU code paths. This patch
replaces this conditional with assert and removes the builder call in
CPU code paths.

Change-Id: I9fa93146091754df1bbc8f142a16fc1936ae53ea
src/gromacs/ewald/pme_gpu_program.cpp
src/gromacs/ewald/tests/testhardwarecontexts.cpp
src/gromacs/ewald/tests/testhardwarecontexts.h