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

Use AMReX FFT for IGF Solver #5457

Merged
merged 6 commits into from
Nov 18, 2024
Merged

Conversation

WeiqunZhang
Copy link
Member

@WeiqunZhang WeiqunZhang commented Nov 14, 2024

This replaces the implementation using HeFFTe. A new runtime parameter ablastr.nprocs_igf_fft is added. This parameter controls the the number of processes used by parallel FFT in the IGF solver. By default, all processes will be used.

This replaces the implementation using HeFFTe. A new runtime parameter
ablastr.do_serial_fft is added. The default is false. If it's true, we use
only one process to do FFT.
@WeiqunZhang
Copy link
Member Author

@RemiLehe I didn't notice your checksum commit and I force-pushed to fix clang-tidy warnings. Sorry. Can you redo it?

@RemiLehe
Copy link
Member

Sounds good, done.

@WeiqunZhang WeiqunZhang force-pushed the amrex_fft branch 2 times, most recently from 11039af to 2e71716 Compare November 15, 2024 17:33
dm_global_fft.define(std::move(pmap));
amrex::ParmParse pp("ablastr");
pp.queryAdd("nprocs_igf_fft", nprocs);
nprocs = std::max(1,std::min(nprocs, amrex::ParallelDescriptor::NProcs()));
Copy link
Member

Choose a reason for hiding this comment

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

As a follow-up PR: we could add an automated test for the case ablastr.nprocs_igf_fft = 1 and add it in the documentation.

@RemiLehe RemiLehe merged commit 018eeec into ECP-WarpX:development Nov 18, 2024
37 checks passed
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.

3 participants