-
Notifications
You must be signed in to change notification settings - Fork 367
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
convert IndexType to IndexTypeND #3988
convert IndexType to IndexTypeND #3988
Conversation
Not sure what's wrong with the CUDA EB 2D Hypre CI test. |
Even without any cache hits, that hypre cuda eb 2d test usually takes about 20 minutes. |
Im actually able to reproduce the compilation hanging on a HPC cluster (without hypre). |
It seems that |
For me MLCurlCurl is fine. The issue is this in GFab::buildTypes in AMReX_EB2_MultiGFab.cpp. If I comment that out, it builds.
|
it's this line |
For me too, I also commented out |
Not sure what's going on here. If I change it to this, it compiles. Maybe It's something in the if condition that causes it?
|
Could you try this?
It's more efficient this way anyway. |
3d actually compiles, but not 2d. This is some weird nvcc bug. |
It works with the changes to the |
That Windows CI is really slow. #4012 |
## Summary Similar to #3969 and #3988 but for Box. ## Additional background It should be checked that the changes to BoxIndexer do not affect the compiled GPU code. In my testing, it gives the same performance as development. Example usage: ```C++ amrex::BoxND b1{amrex::IntVectND{1,2,3}, amrex::IntVectND{4,5,6}, amrex::IntVectND{1,0,1}}; // ((1,2,3) (4,5,6) (1,0,1)) auto b2 = amrex::BoxCat(b1, b1, b1); // ((1,2,3,1,2,3,1,2,3) (4,5,6,4,5,6,4,5,6) (1,0,1,1,0,1,1,0,1)) auto [b3, b4, b5, b6, b7] = amrex::BoxSplit<1, 4, 2, 1, 1>(b2); // ((1) (4) (1))((2,3,1,2) (5,6,4,5) (0,1,1,0))((3,1) (6,4) (1,1))((2) (5) (0))((3) (6) (1)) auto b8 = amrex::BoxResize<2>(b4); // ((2,3) (5,6) (0,1)) auto b9 = amrex::BoxResize<5>(b8); // ((2,3,0,0,0) (5,6,0,0,0) (0,1,0,0,0)) ```
Summary
Similar to #3969 but for IndexType.
Additional background
A maximum of 31 dimensions are supported so that (1u << dim) can fit into an unsigned int.
Checklist
The proposed changes: