-
Notifications
You must be signed in to change notification settings - Fork 145
Add convolution for psi #6432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add convolution for psi #6432
Conversation
@@ -16,13 +16,13 @@ template <> | |||
void FFT_CUDA<float>::setupFFT() | |||
{ | |||
cufftPlan3d(&c_handle, this->nx, this->ny, this->nz, CUFFT_C2C); | |||
resmem_cd_op()(this->c_auxr_3d, this->nx * this->ny * this->nz); | |||
resmem_cd_op()(this->c_auxr_3d, 2*this->nx * this->ny * this->nz); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why '2' is added here?
} | ||
template <> | ||
void FFT_CUDA<double>::setupFFT() | ||
{ | ||
cufftPlan3d(&z_handle, this->nx, this->ny, this->nz, CUFFT_Z2Z); | ||
resmem_zd_op()(this->z_auxr_3d, this->nx * this->ny * this->nz); | ||
resmem_zd_op()(this->z_auxr_3d, 2*this->nx * this->ny * this->nz); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why '2' is added here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error has been fixed.
After discussion with @A-006 , I cannot accept this modifcation, which causes too many new defects. We decide to close this PR. |
What's changed?
recip2real
andreal2recip
, improving the performance of the plane-wave basis by approximately 5%.