We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4009f6a commit 3d36512Copy full SHA for 3d36512
source/module_basis/module_pw/module_fft/fft_bundle.cpp
@@ -45,8 +45,15 @@ void FFT_Bundle::initfft(int nx_in,
45
46
if (this->precision=="single")
47
{
48
- #ifndef __ENABLE_FLOAT_FFTW
49
- float_define = false;
+ #if not defined (__ENABLE_FLOAT_FFTW)
+ if (this->device == "cpu"){
50
+ float_define = false;
51
+ }
52
+ #endif
53
+ #if defined(__CUDA) || defined (__ROCM)
54
+ if (this->device == "gpu"){
55
+ float_flag = float_define;
56
57
#endif
58
float_flag = float_define;
59
double_flag = true;
0 commit comments