fix unnecessary switch to polling GPU wait
authorSzilárd Páll <pszilard@cbr.su.se>
Thu, 7 Mar 2013 02:50:47 +0000 (03:50 +0100)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Thu, 30 May 2013 09:26:28 +0000 (11:26 +0200)
commit26728877e37de553d7ad7d486737aa765d3bda8d
treeabc920df3220f2726eeaf9363a66b879c95a5137
parente5d22a35ccf1f35af3067ee4c03a75fc54432d1d
fix unnecessary switch to polling GPU wait

Commit 84597ae introduced an incorrect condition for testing
whether mdrun should and can switch to polling GPU wait.
This minor bug results in swithching to polling wait even when this
is unnecessary (i.e. when the driver in use is >=v5.0), This is
rather harmless, but the polling wait is fragile, so we should use
it only when really necessary.

This commit fixes the switching as well as reorganizes the conditionals
to make it more clear that switching is needed when ECC is on and the
NVIDIA GPU driver is older than v5.0.

Change-Id: I9106cb34c9a8fde2f9b54045d9b03ee5f5d50d8b
src/mdlib/nbnxn_cuda/nbnxn_cuda_data_mgmt.cu