Move warning to avoid multiple instances

This commit is contained in:
Stan Moore
2024-02-06 12:33:01 -07:00
parent 4b0c1f2605
commit 5adbc09b71
2 changed files with 8 additions and 7 deletions

View File

@ -69,13 +69,6 @@ FFT3dKokkos<DeviceType>::FFT3dKokkos(LAMMPS *lmp, MPI_Comm comm, int nfast, int
if (stack_size < 2048)
cudaDeviceSetLimit(cudaLimitStackSize,2048);
#endif
#if defined (LMP_KOKKOS_GPU)
int me;
MPI_Comm_rank(comm,&me);
if (me == 0)
lmp->warning(FLERR,"Using default KISS FFT with Kokkos GPU backends may give suboptimal performance");
#endif
#endif
plan = fft_3d_create_plan_kokkos(comm,nfast,nmid,nslow,

View File

@ -20,6 +20,7 @@
#include "atom_kokkos.h"
#include "atom_masks.h"
#include "comm.h"
#include "domain.h"
#include "error.h"
#include "fft3d_kokkos.h"
@ -105,6 +106,13 @@ PPPMKokkos<DeviceType>::PPPMKokkos(LAMMPS *lmp) : PPPM(lmp)
fft1 = nullptr;
fft2 = nullptr;
remap = nullptr;
#if defined (LMP_KOKKOS_GPU)
#if defined(FFT_KOKKOS_KISSFFT)
if (comm->me == 0)
error->warning(FLERR,"Using default KISS FFT with Kokkos GPU backends may give suboptimal performance");
#endif
#endif
}
/* ----------------------------------------------------------------------