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

FabArray: Option to use a single contiguous chunk of memory #3857

Merged
merged 2 commits into from
Mar 29, 2024

Conversation

WeiqunZhang
Copy link
Member

This adds an option to use a single contiguous chunk of memory for all the data in Fabs of a FabArray/MultiFab/iMultiFab. One can change the strategy for an individual MultiFab via MFInfo::SetAllocSingleChunk(bool) and for all MultiFabs by default via ParmParse parameter, amrex.mf.alloc_single_chunk=1.

This is considered an experimental feature. Please let us know if you notice any issues.

@WeiqunZhang WeiqunZhang force-pushed the fa_single_allocate branch 2 times, most recently from 1a68ddf to 135b4f9 Compare March 28, 2024 22:13
This adds an option to use a single contiguous chunk of memory for all the
data in Fabs of a FabArray/MultiFab/iMultiFab. One can change the strategy
for an individual MultiFab via MFInfo::SetAllocSingleChunk(bool) and for all
MultiFabs by default via ParmParse parameter, amrex.mf.alloc_single_chunk=1.

This is considered an experimental feature. Please let us know if you notice
any issues.
@WeiqunZhang WeiqunZhang marked this pull request as ready for review March 28, 2024 22:33
@WeiqunZhang WeiqunZhang requested a review from atmyers March 28, 2024 22:33
@asalmgren asalmgren merged commit 1be7257 into AMReX-Codes:development Mar 29, 2024
68 of 69 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.

2 participants