naffrancois
naffrancois

Reputation: 25

MPI 100% CPU usage while waiting

I have a Fortran program that uses the MPICH library. At some point, the program rank 0 calls an external program, which itself uses OPENMP while other ranks wait in an MPI_BARRIER. My issue is that waiting processes stay at 100% CPU usage. I want to be able to use resources from waiting processes to speed up my OpenMP program running on rank 0.

Is there a way to control the busy mode of MPICH? I've seen threads but they mainly concern OpenMPI and not MPICH (e.g. --mca mpi_yield_when_idle 1). I believe I would need the MPICH equivalent of --mca mpi_yield_when_idle 1 but I can't find it.

Thank you for your help and comments

Upvotes: 1

Views: 131

Answers (0)

Related Questions