Closed BenWibking closed 3 weeks ago
I think the problem is actually that its using the wrong inputs file, because some logic in the cmake tests was based on CUDA being on, rather than any GPU backend. See https://github.com/AMReX-Codes/amrex/pull/3982
When building with
cmake .. -DAMReX_ENABLE_TESTS=ON -DAMReX_GPU_BACKEND=HIP
and runningctest
on a GPU development node with only 1 GPU, the following tests fail:This appears to be because these tests require 2 MPI ranks, and each MPI rank tries to use the GPU (the same one, since there is only 1 on this node), which fails:
I'm not sure how best to avoid this problem. Maybe a warning could be printed if this is not expected to work in this scenario?