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 new bug in pure soa communication #4337

Merged
merged 3 commits into from
Feb 18, 2025

Conversation

atmyers
Copy link
Member

@atmyers atmyers commented Feb 18, 2025

This fixes an issue introduced in PR #4333.

The proposed changes:

  • fix a bug or incorrect behavior in AMReX
  • add new capabilities to AMReX
  • changes answers in the test suite to more than roundoff level
  • are likely to significantly affect the results of downstream AMReX users
  • include documentation in the code and/or rst files, if appropriate

@atmyers atmyers requested review from WeiqunZhang and ax3l February 18, 2025 19:46
Comment on lines 246 to 250
int num_real_comm_comp = 0;
for (int i = AMREX_SPACEDIM + NStructReal; i < real_comp_mask.size(); ++i) {
int comm_comps_start = 0;
if constexpr (!PC::ParticleType::is_soa_particle) {
comm_comps_start += AMREX_SPACEDIM + NStructReal;
}
Copy link
Member

Choose a reason for hiding this comment

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

Some more formatting :)

Comment on lines 137 to 140
int array_start_index = 0;
if constexpr (!ParticleType::is_soa_particle) {
array_start_index = AMREX_SPACEDIM + NStructReal;
}
Copy link
Member

Choose a reason for hiding this comment

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

Some more formatting :)

Copy link
Member Author

Choose a reason for hiding this comment

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

I upgraded to Ubuntu 24.04 and now my init.el is b0rked.

Comment on lines 191 to 194
int array_start_index = 0;
if constexpr (!ParticleType::is_soa_particle) {
array_start_index = AMREX_SPACEDIM + NStructReal;
}
Copy link
Member

Choose a reason for hiding this comment

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

Some more formatting :)

Comment on lines 604 to 607
int array_start_index = 0;
if constexpr (!ParticleType::is_soa_particle) {
array_start_index = AMREX_SPACEDIM + NStructReal;
}
Copy link
Member

Choose a reason for hiding this comment

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

Some more formatting :)

@ax3l
Copy link
Member

ax3l commented Feb 18, 2025

cc @roelof-groenewald @EZoni

@roelof-groenewald
Copy link
Contributor

Thanks @atmyers!

Copy link
Member

@ax3l ax3l left a comment

Choose a reason for hiding this comment

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

Thank you for the fix!

@ax3l ax3l merged commit b364bec into AMReX-Codes:development Feb 18, 2025
75 checks passed
EZoni pushed a commit to ECP-WarpX/WarpX that referenced this pull request Feb 19, 2025
Weekly update to latest AMReX.
Weekly update to latest pyAMReX (no changes).
Weekly update to latest PICSAR (no changes).

```console
./Tools/Release/updateAMReX.py
./Tools/Release/updatepyAMReX.py
./Tools/Release/updatePICSAR.py
```

This pulls in AMReX-Codes/amrex#4337, fixing
regressions from #5669 (GPU segfaults on particle redistribute)

Signed-off-by: Axel Huebl <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants