-
Notifications
You must be signed in to change notification settings - Fork 378
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
Compiling for 32bit Linux #4371
Comments
@atmyers @WeiqunZhang is this potentially an easy fix? |
What's the data type of |
The data type should be a double for ParticleReal for pure SoA particles, I am seeing this with a default build of ImpactX using Python bindings on 32bit Linux. The problem is likely from some integer types that we also store in ParticleType? |
Type seems to be this:
Accidentally cropped the one line that counts in the initial report, haha. |
I don't understand. It looks like that the first non-static member of |
Oh I see. ChatGPT says,
|
https://en.wikipedia.org/wiki/Data_structure_alignment
|
This fixes build issues on 32-bit Linux. This should not affect 64 bits machines. Fix #4371
Compiling AMReX 25.02 for 32bit Linux raises this static assert:
https://github.com/AMReX-Codes/amrex/blob/25.02/Src/Particle/AMReX_ParticleContainerI.H#L65-L66
Seen in
The text was updated successfully, but these errors were encountered: