merge lmpfftsettings_kokkos.h into lmpfftsettings.h
This commit is contained in:
@ -16,7 +16,7 @@
|
||||
#ifndef LMP_FFT_SETTINGS_H
|
||||
#define LMP_FFT_SETTINGS_H
|
||||
|
||||
// if user set FFTW, it means FFTW3
|
||||
// if a user sets FFTW, it means FFTW3
|
||||
|
||||
#ifdef FFT_FFTW
|
||||
#ifndef FFT_FFTW3
|
||||
@ -24,6 +24,14 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef LMP_KOKKOS
|
||||
#ifdef FFT_KOKKOS_FFTW
|
||||
#ifndef FFT_KOKKOS_FFTW3
|
||||
#define FFT_KOKKOS_FFTW3
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// set strings for library info output
|
||||
|
||||
#if defined(FFT_FFTW3)
|
||||
@ -38,6 +46,20 @@
|
||||
#define LMP_FFT_LIB "KISS FFT"
|
||||
#endif
|
||||
|
||||
#ifdef LMP_KOKKOS
|
||||
#if defined(FFT_KOKKOS_FFTW3)
|
||||
#define LMP_FFT_KOKKOS_LIB "FFTW3"
|
||||
#elif defined(FFT_KOKKOS_MKL)
|
||||
#define LMP_FFT_KOKKOS_LIB "MKL FFT"
|
||||
#elif defined(FFT_KOKKOS_CUFFT)
|
||||
#define LMP_FFT_KOKKOS_LIB "cuFFT"
|
||||
#elif defined(FFT_KOKKOS_HIPFFT)
|
||||
#define LMP_FFT_KOKKOS_LIB "hipFFT"
|
||||
#else
|
||||
#define LMP_FFT_KOKKOS_LIB "KISS FFT"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef FFT_SINGLE
|
||||
typedef float FFT_SCALAR;
|
||||
#define FFT_PRECISION 1
|
||||
|
||||
Reference in New Issue
Block a user