You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you attempt to launch an MPI process using a wrapper, it may fail. For example, if you run flux mini run my_script.py mpi_app.exe, where my_script.pyPopens mpi_app.exe, the MPI init will fail, even if it is just a single rank MPI application. Same thing for flux mini run totalview mpi_app.exe. The issue is that Python's Popen and Totalview close file descriptors before launching the child process. MPI uses the PMI_FD file descriptor to communicate with Flux in order to bootstrap.
If you attempt to launch an MPI process using a wrapper, it may fail. For example, if you run
flux mini run my_script.py mpi_app.exe
, wheremy_script.py
Popen
smpi_app.exe
, the MPI init will fail, even if it is just a single rank MPI application. Same thing forflux mini run totalview mpi_app.exe
. The issue is that Python's Popen and Totalview close file descriptors before launching the child process. MPI uses thePMI_FD
file descriptor to communicate with Flux in order to bootstrap.If you are attempting to debug your MPI application with Totalview, follow these instructions: https://flux-framework.readthedocs.io/en/latest/debugging.html#parallel-debugging-using-totalview
If you are attempting to wrap your MPI application with a Python script and
Popen
, then make sure to passclose_fds=False
toPopen
: https://docs.python.org/3/library/subprocess.html#subprocess.PopenThe text was updated successfully, but these errors were encountered: