Move warning to avoid multiple instances
This commit is contained in:
@ -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,
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user