Apply re-formatting to C++ in src/ tree.
[alexxy/gromacs.git] / src / gromacs / listed_forces / gpubonded_impl.cu
index 741244caaf44f7ad22b1cd27983d61ab84129500..ff34ad967c3f3041387c30a7c917cc6a75e9c70e 100644 (file)
@@ -88,8 +88,13 @@ GpuBonded::Impl::Impl(const gmx_ffparams_t& ffparams,
     // This could be an async transfer (if the source is pinned), so
     // long as it uses the same stream as the kernels and we are happy
     // to consume additional pinned pages.
-    copyToDeviceBuffer(&d_forceParams_, ffparams.iparams.data(), 0, ffparams.numTypes(),
-                       deviceStream_, GpuApiCallBehavior::Sync, nullptr);
+    copyToDeviceBuffer(&d_forceParams_,
+                       ffparams.iparams.data(),
+                       0,
+                       ffparams.numTypes(),
+                       deviceStream_,
+                       GpuApiCallBehavior::Sync,
+                       nullptr);
     vTot_.resize(F_NRE);
     allocateDeviceBuffer(&d_vTot_, F_NRE, deviceContext_);
     clearDeviceBufferAsync(&d_vTot_, 0, F_NRE, deviceStream_);
@@ -230,11 +235,16 @@ void GpuBonded::Impl::updateInteractionListsAndDeviceBuffers(ArrayRef<const int>
         {
             t_ilist& d_iList = d_iLists_[fType];
 
-            reallocateDeviceBuffer(&d_iList.iatoms, iList.size(), &d_iList.nr, &d_iList.nalloc,
-                                   deviceContext_);
+            reallocateDeviceBuffer(
+                    &d_iList.iatoms, iList.size(), &d_iList.nr, &d_iList.nalloc, deviceContext_);
 
-            copyToDeviceBuffer(&d_iList.iatoms, iList.iatoms.data(), 0, iList.size(), deviceStream_,
-                               GpuApiCallBehavior::Async, nullptr);
+            copyToDeviceBuffer(&d_iList.iatoms,
+                               iList.iatoms.data(),
+                               0,
+                               iList.size(),
+                               deviceStream_,
+                               GpuApiCallBehavior::Async,
+                               nullptr);
         }
         kernelParams_.fTypesOnGpu[fTypesCounter]    = fType;
         kernelParams_.numFTypeIAtoms[fTypesCounter] = iList.size();