Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions source/module_basis/module_pw/module_fft/fft_bundle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,15 @@ void FFT_Bundle::initfft(int nx_in,

if (this->precision=="single")
{
#ifndef __ENABLE_FLOAT_FFTW
float_define = false;
#if not defined (__ENABLE_FLOAT_FFTW)
if (this->device == "cpu"){
float_define = false;
}
#endif
#if defined(__CUDA) || defined (__ROCM)
if (this->device == "gpu"){
float_flag = float_define;
}
#endif
float_flag = float_define;
double_flag = true;
Expand Down
Loading