Fix clang format and suppres clang lint warning
authorAndrey Alekseenko <al42and@gmail.com>
Thu, 30 Sep 2021 16:42:47 +0000 (18:42 +0200)
committerAndrey Alekseenko <al42and@gmail.com>
Thu, 30 Sep 2021 16:42:47 +0000 (18:42 +0200)
src/gromacs/ewald/pme_pp_comm_gpu_impl.cu
src/gromacs/fft/gpu_3dfft.h

index 8c29a1cf1bd2d8542fe482c8239ffad9ba644fdc..d50151836fe556016aa55f085bf5a26e6709d982 100644 (file)
@@ -92,6 +92,7 @@ void PmePpCommGpu::Impl::reinit(int size)
         RVec* pmeCpuForceBufferData = pmeCpuForceBuffer_->data();
         MPI_Send(&pmeCpuForceBufferData, sizeof(RVec*), MPI_BYTE, pmeRank_, 0, comm_);
         // Receive address of event and associated flag from PME rank, to allow sync to local stream after force transfer
+        // NOLINTNEXTLINE(bugprone-sizeof-expression)
         MPI_Recv(&remotePmeForceSendEvent_, sizeof(GpuEventSynchronizer*), MPI_BYTE, pmeRank_, 0, comm_, MPI_STATUS_IGNORE);
         MPI_Recv(&remotePmeForceSendEventRecorded_, sizeof(std::atomic<bool>*), MPI_BYTE, pmeRank_, 0, comm_, MPI_STATUS_IGNORE);
     }
index 577108a154177b236c3278da741e2c3afbbc86de..2643be275fea32d990ef8ddb1ef80c3e143198f0 100644 (file)
@@ -67,8 +67,8 @@ class ArrayRef;
  */
 enum class FftBackend
 {
-    Cufft,      // supports only single-GPU
-    Ocl,        // supports only single-GPU
+    Cufft, // supports only single-GPU
+    Ocl,   // supports only single-GPU
     HeFFTe_CUDA,
     SyclMkl,    // supports only single-GPU
     SyclRocfft, // supports only single-GPU