Improve error reporting for CUDA device polling 08/4708/1
authorJim Phillips <jim@ks.uiuc.edu>
Wed, 17 Oct 2018 19:57:05 +0000 (14:57 -0500)
committerJim Phillips <jim@ks.uiuc.edu>
Wed, 17 Oct 2018 19:57:05 +0000 (14:57 -0500)
commitc4339a4438f85a16c7b90443b34e47b9cc1e94e4
tree499db826edd9d0295325a62e17cffa02e0864f3a
parent9cbbf2327f01b29ed0837d3e4edbd1c612e4faf3
Improve error reporting for CUDA device polling

Fix cases where calling cuda_errcheck would do nothing
because device had not returned error to use cudaDie.
Also provide uniform and complete messages in all cases.

Change-Id: Ia2ee1c1b33a2f5dd97e705869b97e70e9e666771
src/ComputeBondedCUDA.C
src/ComputeNonbondedCUDA.C
src/ComputePme.C
src/CudaComputeNonbonded.C