You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are not enough slots available in the system to satisfy the 8
slots that were requested by the application:
./test.sh
Either request fewer procs for your application, or make more slots
available for use.
A "slot" is the PRRTE term for an allocatable unit where we can
launch a process. The number of slots available are defined by the
environment in which PRRTE processes are run:
1. Hostfile, via "slots=N" clauses (N defaults to number of
processor cores if not provided)
2. The --host command line parameter, via a ":N" suffix on the
hostname (N defaults to 1 if not provided)
3. Resource manager (e.g., SLURM, PBS/Torque, LSF, etc.)
4. If none of a hostfile, the --host command line parameter, or an
RM is present, PRRTE defaults to the number of processor cores
In all the above cases, if you want PRRTE to default to the number
of hardware threads instead of the number of processor cores, use the
--use-hwthread-cpus option.
Alternatively, you can use the --map-by :OVERSUBSCRIBE option to ignore the
number of available slots when deciding the number of processes to
launch.
Your hostfile only stipulates 4 slots, so asking for 8 procs oversubscribes what you stated. The "max_slots" entry is used to specify the absolute maximum number of procs allowed on the node, even when oversubscribe is specified.
Reference: https://docs.open-mpi.org/en/main/launching-apps/scheduling.html#scheduling-overview
MPI VERSION: mpirun (Open MPI) 5.0.3
hostfile:
test.sh:
cmd1:
mpirun --hostfile hostfile -n 8 --map-by slot ./test.sh | sort
log1:
cmd2:
mpirun --hostfile hostfile -n 8 --map-by slot:oversubscribe ./test.sh | sort
log2:
I hope to obtain the following results. Thanks:)
The text was updated successfully, but these errors were encountered: