HP-MPI Version 2.2.5 for Linux Release Note
HP-MPI V2.2.5 for Linux Release Note
What’s in This Version
35
% bsub -I -n3 -ext "SLURM[nodes=3]" $MPI_ROOT/bin/mpirun -prot -TCP
-netaddr 172.22.0.10 -srun ./a.out
The -ext option can also be used to specifically request a node. The command line would
look something like the following:
% bsub -I -n2 -ext "SLURM[nodelist=n10]" mpirun -srun ./hello_world
Job <1883> is submitted to default queue <interactive>.
<<Waiting for dispatch ...>>
<<Starting on lsfhost.localdomain>>
Hello world! I'm 0 of 2 on n10
Hello world! I'm 1 of 2 on n10
%
Including and excluding specific nodes can be accomplished by passing arguments to
SLURM as well. For example, to make sure a job includes a specific node and excludes
others, use something like the following. In this case, n9 is a required node and n10 is
specifically excluded:
% bsub -I -n8 -ext "SLURM[nodelist=n9;exclude=n10]" mpirun -srun
./hello_world
Job <1892> is submitted to default queue <interactive>.
<<Waiting for dispatch ...>>
<<Starting on lsfhost.localdomain>>
Hello world! I'm 0 of 8 on n8
Hello world! I'm 1 of 8 on n8
Hello world! I’m 6 of 8 on n12
Hello world! I’m 2 of 8 on n9
Hello world! I’m 4 of 8 on n11
Hello world! I’m 7 of 8 on n12
Hello world! I’m 3 of 8 on n9
Hello world! I’m 5 of 8 on n11
%