33#include " module_basis/module_pw/kernels/pw_op.h"
44namespace ModulePW
55{
6- #if (defined(__CUDA) || defined(__ROCM))
6+ // #if (defined(__CUDA) || defined(__ROCM))
77template <typename FPTYPE>
88void PW_Basis::real2recip_gpu (const FPTYPE* in,
99 std::complex <FPTYPE>* out,
@@ -24,8 +24,7 @@ void PW_Basis::real2recip_gpu(const FPTYPE* in,
2424 this ->fft_bundle .get_auxr_3d_data <FPTYPE>(),
2525 this ->fft_bundle .get_auxr_3d_data <FPTYPE>());
2626
27- set_real_to_recip_output_op<FPTYPE, base_device::DEVICE_GPU>()(ctx,
28- npw,
27+ set_real_to_recip_output_op<FPTYPE, base_device::DEVICE_GPU>()(npw,
2928 this ->nxyz ,
3029 add,
3130 factor,
@@ -54,8 +53,7 @@ void PW_Basis::real2recip_gpu(const std::complex<FPTYPE>* in,
5453 this ->fft_bundle .get_auxr_3d_data <FPTYPE>(),
5554 this ->fft_bundle .get_auxr_3d_data <FPTYPE>());
5655
57- set_real_to_recip_output_op<FPTYPE, base_device::DEVICE_GPU>()(ctx,
58- npw,
56+ set_real_to_recip_output_op<FPTYPE, base_device::DEVICE_GPU>()(npw,
5957 this ->nxyz ,
6058 add,
6159 factor,
@@ -81,17 +79,15 @@ void PW_Basis::recip2real_gpu(const std::complex<FPTYPE>* in,
8179 0 ,
8280 this ->nxyz );
8381
84- set_3d_fft_box_op<FPTYPE, base_device::DEVICE_GPU>()(ctx,
85- npw,
82+ set_3d_fft_box_op<FPTYPE, base_device::DEVICE_GPU>()(npw,
8683 this ->ig2isz ,
8784 in,
8885 this ->fft_bundle .get_auxr_3d_data <FPTYPE>());
8986 this ->fft_bundle .fft3D_backward (ctx,
9087 this ->fft_bundle .get_auxr_3d_data <FPTYPE>(),
9188 this ->fft_bundle .get_auxr_3d_data <FPTYPE>());
9289
93- set_recip_to_real_output_op<FPTYPE, base_device::DEVICE_GPU>()(ctx,
94- this ->nrxx ,
90+ set_recip_to_real_output_op<FPTYPE, base_device::DEVICE_GPU>()(this ->nrxx ,
9591 add,
9692 factor,
9793 this ->fft_bundle .get_auxr_3d_data <FPTYPE>(),
@@ -115,17 +111,15 @@ template <typename FPTYPE>
115111 0 ,
116112 this ->nxyz );
117113
118- set_3d_fft_box_op<FPTYPE, base_device::DEVICE_GPU>()(ctx,
119- npw,
114+ set_3d_fft_box_op<FPTYPE, base_device::DEVICE_GPU>()(npw,
120115 this ->ig2isz ,
121116 in,
122117 this ->fft_bundle .get_auxr_3d_data <FPTYPE>());
123118 this ->fft_bundle .fft3D_backward (ctx,
124119 this ->fft_bundle .get_auxr_3d_data <FPTYPE>(),
125120 this ->fft_bundle .get_auxr_3d_data <FPTYPE>());
126121
127- set_recip_to_real_output_op<FPTYPE, base_device::DEVICE_GPU>()(ctx,
128- this ->nrxx ,
122+ set_recip_to_real_output_op<FPTYPE, base_device::DEVICE_GPU>()(this ->nrxx ,
129123 add,
130124 factor,
131125 this ->fft_bundle .get_auxr_3d_data <FPTYPE>(),
@@ -169,5 +163,5 @@ template void PW_Basis::recip2real_gpu<float>(const std::complex<float>* in,
169163 const bool add,
170164 const float factor) const ;
171165
172- #endif
166+ // #endif
173167} // namespace ModulePW
0 commit comments