Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Split up particles over multiple tiles for OpenMP #862
base: development
Are you sure you want to change the base?
Split up particles over multiple tiles for OpenMP #862
Changes from 10 commits
3f85174
6aa6e38
3c44373
4a83a17
2cbf241
1e26241
eb1b383
fd2736f
30adb95
2463cba
c46548d
f6a0c69
4582338
bc7dfee
a097700
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
@atmyers I added more more concrete guidance to users here, can you please double check it?
In which situations would we not be able to find enough tiles? Is there other guidance we should give or can we make it a
high
warning and "just" be less parallel (i.e., less parallely efficient)?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.
Currently, the code will not just be efficient, it will give incorrect results if the number of tiles according to the
tile_size
is fewer than the number of threads. The issue is that the copyParticles routine in AMReX does not copy the ones that aren't on a valid tile. This resulted in some of the particles not getting written out some examples (since we us copyParticles to a pinned_pc in IO).This can be changed in AMReX, I'd suggest changing this to a warning rather than an Abort at that point.