Skip to content

Calling regridder causes mpirun to fail #305

Answered by angus-g
ashjbarnes asked this question in Q&A
Discussion options

You must be logged in to vote

This is happening because the ESMF being used from xesmf is configured with MPI support. When the regridder is called, MPI is initialised within the context of the Python process. OpenMPI doesn't support recursively running MPI, so it aborts immediately (related: open-mpi/ompi#9729).

I think the RegridWeightGen step needs to be performed either before, or external to the Python script which performs the regridding (see https://xesmf.readthedocs.io/en/latest/large_problems_on_HPC.html for suggestions).

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by huard
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #267 on September 12, 2023 13:00.