Skip to content
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

Refactor:Remove the dependency of the Psi in the FFT module #5564

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

A-006
Copy link
Collaborator

@A-006 A-006 commented Nov 21, 2024

Unit Tests and/or Case Tests for my changes

  • In the module_pw/test,there is a Makefile which test the module_fft.Modify the file to test the memory safety and correctness of the fft.

What's changed?

  • Remove the dependency of the psi.h,move the check func of the cufft into the module_fft.

@A-006 A-006 changed the title Refactor:Remove the dependency of the psi in fft. Refactor:Remove the dependency of the psi in fft Nov 21, 2024
@caic99 caic99 removed their request for review November 21, 2024 12:53
return "<unknown>";
}

#define CHECK_CUFFT(func) \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why there are several '' exist in the code?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code in this section is only called in module_fft. Would splitting check_func make it easier to maintain?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't make any sense.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, this part has been reverted.

@mohanchen mohanchen added the Refactor Refactor ABACUS codes label Nov 22, 2024
@mohanchen mohanchen changed the title Refactor:Remove the dependency of the psi in fft Refactor:Remove the dependency of the Psi in the FFT module Nov 23, 2024
@A-006 A-006 marked this pull request as draft November 23, 2024 08:55
@A-006 A-006 marked this pull request as ready for review November 23, 2024 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor Refactor ABACUS codes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants