diff --git a/src/finish.cpp b/src/finish.cpp index 810155f1b0..28596e3a72 100644 --- a/src/finish.cpp +++ b/src/finish.cpp @@ -401,7 +401,7 @@ void Finish::end(int flag) } #endif - if (lmp->kokkos && lmp->kokkos->ngpus > 0) + if ((comm->me == 0) && lmp->kokkos && (lmp->kokkos->ngpus > 0)) if (const char* env_clb = getenv("CUDA_LAUNCH_BLOCKING")) if (!(strcmp(env_clb,"1") == 0)) { error->warning(FLERR,"Timing breakdown may not be accurate "