File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
source/module_basis/module_pw/module_fft Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ void FFT_Bundle::initfft(int nx_in,
7272 ModuleBase::WARNING_QUT (" device" ," now dsp fft is not support for the float type" );
7373 fft_double=make_unique<FFT_DSP<double >>();
7474 fft_double->initfft (nx_in,ny_in,nz_in);
75- #endif
75+ #else
7676 fft_float = make_unique<FFT_CPU<float >>(this ->fft_mode );
7777 fft_double = make_unique<FFT_CPU<double >>(this ->fft_mode );
7878 if (float_flag)
@@ -101,6 +101,7 @@ void FFT_Bundle::initfft(int nx_in,
101101 gamma_only_in,
102102 xprime_in);
103103 }
104+ #endif
104105 }
105106 if (device==" gpu" )
106107 {
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ void FFT_DSP<double>::setupFFT()
2121 PLAN* ptr_plan_forward;
2222 PLAN* ptr_plan_backward;
2323 INT num_thread=8 ;
24-
2524 INT size;
2625 // open cluster id
2726 hthread_dev_open (cluster_id);
You can’t perform that action at this time.
0 commit comments