Avoid short-range GPU operations with no work
authorMark Abraham <mark.j.abraham@gmail.com>
Fri, 13 Sep 2019 08:03:55 +0000 (10:03 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Mon, 16 Sep 2019 09:52:31 +0000 (11:52 +0200)
commit64dffe111c86b688cec586db27fb82f1c66baba7
tree3b65816f20d6199f566274ab36ecd343eac94302
parent086ef6495d9e84de4d0e3a06eab7c3845c6c7ccb
Avoid short-range GPU operations with no work

Also moved some assertions until after the checks that there is work
because when there are no atoms in a locality the pointer (even from
the ArrayRef) can be nullptr.

Used more consistent naming for numAtoms and numCopyAtoms variables

Noted some TODOs for outstanding questions

Change-Id: I965832765a57486b632f5e3b17c2c91107a29070
src/gromacs/nbnxm/cuda/nbnxm_cuda.cu