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

[fix] Allocate wave-function from memory pool #784

Merged
merged 1 commit into from
Nov 24, 2022

Conversation

toxa81
Copy link
Collaborator

@toxa81 toxa81 commented Nov 19, 2022

Small fix that improves a lot allocation of the host-pinned memory for the wave-functions. I tested it on Au-surf example and the performance is good now.

As a by-product: use std::make_unique in a couple of places and allow to set parallel FFT transformation for the wave functions if mpi grid is of the [n, 1] shape.

@toxa81 toxa81 self-assigned this Nov 19, 2022
@toxa81 toxa81 marked this pull request as ready for review November 19, 2022 00:24
@toxa81
Copy link
Collaborator Author

toxa81 commented Nov 24, 2022

Is is OK to merge it?

Copy link
Collaborator

@simonpintarelli simonpintarelli left a comment

Choose a reason for hiding this comment

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

lgtm

@toxa81 toxa81 merged commit b9b1591 into develop Nov 24, 2022
@toxa81 toxa81 deleted the fix/allocate-from-pool branch November 24, 2022 19:21
mtaillefumier pushed a commit to mtaillefumier/SIRIUS that referenced this pull request Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants