@@ -289,7 +289,7 @@ void PW_Basis_K::recip2real(const std::complex<FPTYPE>* in,
289289}
290290
291291template <>
292- void PW_Basis_K::real_to_recip (const base_device::DEVICE_CPU* /* dev*/ ,
292+ void PW_Basis_K::real2recip_impl (const base_device::DEVICE_CPU* /* dev*/ ,
293293 const std::complex <float >* in,
294294 std::complex <float >* out,
295295 const int ik,
@@ -299,7 +299,7 @@ void PW_Basis_K::real_to_recip(const base_device::DEVICE_CPU* /*dev*/,
299299 this ->real2recip (in, out, ik, add, factor);
300300}
301301template <>
302- void PW_Basis_K::real_to_recip (const base_device::DEVICE_CPU* /* dev*/ ,
302+ void PW_Basis_K::real2recip_impl (const base_device::DEVICE_CPU* /* dev*/ ,
303303 const std::complex <double >* in,
304304 std::complex <double >* out,
305305 const int ik,
@@ -314,7 +314,7 @@ void PW_Basis_K::real_to_recip(const base_device::DEVICE_CPU* /*dev*/,
314314}
315315
316316template <>
317- void PW_Basis_K::recip_to_real (const base_device::DEVICE_CPU* /* dev*/ ,
317+ void PW_Basis_K::recip2real_impl (const base_device::DEVICE_CPU* /* dev*/ ,
318318 const std::complex <float >* in,
319319 std::complex <float >* out,
320320 const int ik,
@@ -324,7 +324,7 @@ void PW_Basis_K::recip_to_real(const base_device::DEVICE_CPU* /*dev*/,
324324 this ->recip2real (in, out, ik, add, factor);
325325}
326326template <>
327- void PW_Basis_K::recip_to_real (const base_device::DEVICE_CPU* /* dev*/ ,
327+ void PW_Basis_K::recip2real_impl (const base_device::DEVICE_CPU* /* dev*/ ,
328328 const std::complex <double >* in,
329329 std::complex <double >* out,
330330 const int ik,
@@ -340,14 +340,14 @@ void PW_Basis_K::recip_to_real(const base_device::DEVICE_CPU* /*dev*/,
340340
341341#if (defined(__CUDA) || defined(__ROCM))
342342template <>
343- void PW_Basis_K::real_to_recip (const base_device::DEVICE_GPU* ctx,
343+ void PW_Basis_K::real2recip_impl (const base_device::DEVICE_GPU* ctx,
344344 const std::complex <float >* in,
345345 std::complex <float >* out,
346346 const int ik,
347347 const bool add,
348348 const float factor) const
349349{
350- ModuleBase::timer::tick (this ->classname , " real_to_recip gpu" );
350+ ModuleBase::timer::tick (this ->classname , " real2recip_impl gpu" );
351351 assert (this ->gamma_only == false );
352352 assert (this ->poolnproc == 1 );
353353
@@ -367,17 +367,17 @@ void PW_Basis_K::real_to_recip(const base_device::DEVICE_GPU* ctx,
367367 this ->ig2ixyz_k + startig,
368368 this ->fft_bundle .get_auxr_3d_data <float >(),
369369 out);
370- ModuleBase::timer::tick (this ->classname , " real_to_recip gpu" );
370+ ModuleBase::timer::tick (this ->classname , " real2recip_impl gpu" );
371371}
372372template <>
373- void PW_Basis_K::real_to_recip (const base_device::DEVICE_GPU* ctx,
373+ void PW_Basis_K::real2recip_impl (const base_device::DEVICE_GPU* ctx,
374374 const std::complex <double >* in,
375375 std::complex <double >* out,
376376 const int ik,
377377 const bool add,
378378 const double factor) const
379379{
380- ModuleBase::timer::tick (this ->classname , " real_to_recip gpu" );
380+ ModuleBase::timer::tick (this ->classname , " real2recip_impl gpu" );
381381 assert (this ->gamma_only == false );
382382 assert (this ->poolnproc == 1 );
383383
@@ -398,18 +398,18 @@ void PW_Basis_K::real_to_recip(const base_device::DEVICE_GPU* ctx,
398398 this ->ig2ixyz_k + startig,
399399 this ->fft_bundle .get_auxr_3d_data <double >(),
400400 out);
401- ModuleBase::timer::tick (this ->classname , " real_to_recip gpu" );
401+ ModuleBase::timer::tick (this ->classname , " real2recip_impl gpu" );
402402}
403403
404404template <>
405- void PW_Basis_K::recip_to_real (const base_device::DEVICE_GPU* ctx,
405+ void PW_Basis_K::recip2real_impl (const base_device::DEVICE_GPU* ctx,
406406 const std::complex <float >* in,
407407 std::complex <float >* out,
408408 const int ik,
409409 const bool add,
410410 const float factor) const
411411{
412- ModuleBase::timer::tick (this ->classname , " recip_to_real gpu" );
412+ ModuleBase::timer::tick (this ->classname , " recip2real_impl gpu" );
413413 assert (this ->gamma_only == false );
414414 assert (this ->poolnproc == 1 );
415415 // ModuleBase::GlobalFunc::ZEROS(fft_bundle.get_auxr_3d_data<float>(), this->nxyz);
@@ -433,17 +433,17 @@ void PW_Basis_K::recip_to_real(const base_device::DEVICE_GPU* ctx,
433433 this ->fft_bundle .get_auxr_3d_data <float >(),
434434 out);
435435
436- ModuleBase::timer::tick (this ->classname , " recip_to_real gpu" );
436+ ModuleBase::timer::tick (this ->classname , " recip2real_impl gpu" );
437437}
438438template <>
439- void PW_Basis_K::recip_to_real (const base_device::DEVICE_GPU* ctx,
439+ void PW_Basis_K::recip2real_impl (const base_device::DEVICE_GPU* ctx,
440440 const std::complex <double >* in,
441441 std::complex <double >* out,
442442 const int ik,
443443 const bool add,
444444 const double factor) const
445445{
446- ModuleBase::timer::tick (this ->classname , " recip_to_real gpu" );
446+ ModuleBase::timer::tick (this ->classname , " recip2real_impl gpu" );
447447 assert (this ->gamma_only == false );
448448 assert (this ->poolnproc == 1 );
449449 // ModuleBase::GlobalFunc::ZEROS(fft_bundle.get_auxr_3d_data<double>(), this->nxyz);
@@ -467,7 +467,7 @@ void PW_Basis_K::recip_to_real(const base_device::DEVICE_GPU* ctx,
467467 this ->fft_bundle .get_auxr_3d_data <double >(),
468468 out);
469469
470- ModuleBase::timer::tick (this ->classname , " recip_to_real gpu" );
470+ ModuleBase::timer::tick (this ->classname , " recip2real_impl gpu" );
471471}
472472
473473template <typename FPTYPE>
@@ -477,7 +477,7 @@ void PW_Basis_K::real2recip_gpu(const std::complex<FPTYPE>* in,
477477 const bool add,
478478 const FPTYPE factor) const
479479{
480- ModuleBase::timer::tick (this ->classname , " real_to_recip gpu" );
480+ ModuleBase::timer::tick (this ->classname , " real2recip_impl gpu" );
481481 assert (this ->gamma_only == false );
482482 assert (this ->poolnproc == 1 );
483483
@@ -498,7 +498,7 @@ void PW_Basis_K::real2recip_gpu(const std::complex<FPTYPE>* in,
498498 this ->ig2ixyz_k + startig,
499499 this ->fft_bundle .get_auxr_3d_data <FPTYPE>(),
500500 out);
501- ModuleBase::timer::tick (this ->classname , " real_to_recip gpu" );
501+ ModuleBase::timer::tick (this ->classname , " real2recip_impl gpu" );
502502}
503503template <typename FPTYPE>
504504void PW_Basis_K::recip2real_gpu (const std::complex <FPTYPE>* in,
@@ -507,7 +507,7 @@ void PW_Basis_K::recip2real_gpu(const std::complex<FPTYPE>* in,
507507 const bool add,
508508 const FPTYPE factor) const
509509{
510- ModuleBase::timer::tick (this ->classname , " recip_to_real gpu" );
510+ ModuleBase::timer::tick (this ->classname , " recip2real_impl gpu" );
511511 assert (this ->gamma_only == false );
512512 assert (this ->poolnproc == 1 );
513513 // ModuleBase::GlobalFunc::ZEROS(fft_bundle.get_auxr_3d_data<FPTYPE>(), this->nxyz);
@@ -531,7 +531,7 @@ void PW_Basis_K::recip2real_gpu(const std::complex<FPTYPE>* in,
531531 this ->fft_bundle .get_auxr_3d_data <FPTYPE>(),
532532 out);
533533
534- ModuleBase::timer::tick (this ->classname , " recip_to_real gpu" );
534+ ModuleBase::timer::tick (this ->classname , " recip2real_impl gpu" );
535535}
536536
537537template void PW_Basis_K::real2recip_gpu<float >(const std::complex <float >*,
0 commit comments