Declaration-definition consistency nbxn_cuda_wait_gpu.
authorPeter Kasson <kasson@gmail.com>
Thu, 28 Feb 2013 01:32:07 +0000 (17:32 -0800)
committerPeter Kasson <kasson@gmail.com>
Thu, 28 Feb 2013 16:02:05 +0000 (08:02 -0800)
Changed float->real in nbnxn_cuda_wait_gpu() for consistency between
function declaration and function definition.  Added note that this is
only implemented for single-precision at the moment.  CMake will
complain if GMX_GPU and GMX_DOUBLE are both set.
Addresses Bug #1157.

Change-Id: Ide495cbaba6d120d91f106c6a87ca04e46a2f5a8

src/mdlib/nbnxn_cuda/nbnxn_cuda.cu

index 6d27e77486abd8a082103a34c634e609eeb52f49..2611660b2bd3bef01eca5c6d1cedd42e259eaa63 100644 (file)
@@ -505,8 +505,9 @@ static inline bool atomic_cas(volatile unsigned int *ptr,
 void nbnxn_cuda_wait_gpu(nbnxn_cuda_ptr_t cu_nb,
                          const nbnxn_atomdata_t *nbatom,
                          int flags, int aloc,
-                         float *e_lj, float *e_el, rvec *fshift)
+                         real *e_lj, real *e_el, rvec *fshift)
 {
+    /* NOTE:  only implemented for single-precision at this time */
     cudaError_t stat;
     int i, adat_end, iloc = -1;
     volatile unsigned int *poll_word;