The Slurm MPI User's Guide at https://slurm.schedmd.com/mpi_guide.html#open_mpi has a note that states:
NOTE: OpenMPI has a limitation that does not support calls to MPI_Comm_spawn() from within a Slurm allocation. If you need to use the MPI_Comm_spawn() function you will need to use another MPI implementation combined with PMI-2 since PMIx doesn't support it either. Is this still true in OpenMPI 4.1? Thanks, Kurt