Bug fix and simplification for CUDA X Buffer Ops
[alexxy/gromacs.git] / src / gromacs / mdlib / sim_util.cpp
index baecb96ba1d9e562842b76d7da9996440a6cf627..ad61dee88acadbafcb2aa3f878076ad09b28cd8a 100644 (file)
@@ -1040,7 +1040,7 @@ void do_force(FILE                                     *fplog,
 
         if (useGpuXBufOps)
         {
-            nbv->atomdata_init_copy_x_to_nbat_x_gpu( Nbnxm::AtomLocality::Local);
+            nbv->atomdata_init_copy_x_to_nbat_x_gpu();
         }
 
     }
@@ -1107,12 +1107,6 @@ void do_force(FILE                                     *fplog,
                                    &top->excls, step, nrnb);
             wallcycle_sub_stop(wcycle, ewcsNBS_SEARCH_NONLOCAL);
             wallcycle_stop(wcycle, ewcNS);
-
-            if (useGpuXBufOps)
-            {
-
-                nbv->atomdata_init_copy_x_to_nbat_x_gpu( Nbnxm::AtomLocality::NonLocal);
-            }
         }
         else
         {