Skip to content

Commit

Permalink
Initial commit (#5825)
Browse files Browse the repository at this point in the history
  • Loading branch information
Critsium-xy authored Jan 6, 2025
1 parent 4009f6a commit 3d36512
Showing 1 changed file with 9 additions and 2 deletions.
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

0 comments on commit 3d36512

Please sign in to comment.