why does mpirun behave as it does when used with slurm?
问题 I am using Intel MPI and have encountered some confusing behavior when using mpirun in conjunction with slurm. If I run (in a login node) mpirun -n 2 python -c "from mpi4py import MPI; print(MPI.COMM_WORLD.Get_rank())" then I get as output the expected 0 and 1 printed out. If however I salloc --time=30 --nodes=1 and run the same mpirun from the interactive compute node, I get two 0s printed out instead of the expected 0 and 1. Then, if I change -n 2 to -n 3 (still in compute node), I get a