Mpirun initialization too slow

Hello,

Any program I run with mpirun takes more than 2 secondes to set up. I don’t think it is normal for it to be that slow.

I’ve installed openmpi using yum install. After doing module load mpi/openmpi-x86_64 and correctly setting LD_LIBRARY_PATH which was not set to find intel_one_api libraries (libhwloc.so.15), I’m able to use mpirun.

For example, “time /usr/lib64/openmpi/bin/mpirun -n 1 echo hello” take more than 2s.

real 0m2,038s
user 0m0,021s
sys 0m0,047s

The command without mpi is instant “time echo hello”:

real 0m0,000s
user 0m0,000s
sys 0m0,000s

This is a huge issue because every program I have in MPI now takes 2 seconds of wait before launching. Is this a known issue and is there a way to fix it ?

Thanks in advance for the help

Note :
After running it multiple times, it seems to sometimes take a quarter of the time 0.5s, which is more reasonnable but still slow.