Intel® oneAPI HPC Toolkit
Get help with building, analyzing, optimizing, and scaling high-performance computing (HPC) applications.
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.

mpicleanup in MPI 4.0.3

I am trying MPI 4.0.3 and would like to know which is the best way to cleanup the environment after an mpirun execution using Hydra finishes incorreclty.
In previous versions (with MPDs) I was doing mpdallexit to ensure all daemons where down.
I tried usingI_MPI_HYDRA_CLEANUP environment variable to generate the input file for the mpicleanup tool, but it seems this file is never created.
This is how I am running mpi:
mpirun -r ssh -f /home/mguzman/wdir/ -genv I_MPI_FABRICS shm:dapl -env I_MPI_HYDRA_CLEANUP=1 -machinefile /home/mguzman/wdir/machinefile -n 16 /home/mguzman/wdir/test.impi
I have read that this file is erased when the job ends, so I tryed to look for that file while the command is being executed, but culdn't find it.
Am I doing something wrong? How can I force mpi to fail in order to try mpicleanup tool?
Thanks in advance
Mateo Guzman
0 Kudos
1 Reply
Hi Mateo,

It generally takes a pretty bad failure for cleanup to not automatically occur. If you want to see the file, I would recommend starting a job that is either long enough or needs user input. While the job is waiting, you can look at the file and try mpicleanup. By default, the file should be in /tmp, in the form mpiexec_${username}_$PPID.log and will contain the PIDs of each process grouped by host.

James Tullos
Technical Consulting Engineer
Intel Cluster Tools