This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
strutture:cnaf:clusterhpc:using_the_cnaf_hpc_cluster [2017/07/04 11:06] dcesini@infn.it [Requesting Access] |
strutture:cnaf:clusterhpc:using_the_cnaf_hpc_cluster [2021/03/05 14:54] (current) dcesini@infn.it [Alternative MPI multinode submission] |
||
---|---|---|---|
Line 126: | Line 126: | ||
</ | </ | ||
- | ==== Submitting MPI Jobs ==== | + | ==== Submitting MPI Jobs via mpirun.lsf (obsolete)==== |
Currently only **OpenMPI** jobs have been tested on the HPC cluster. \\ | Currently only **OpenMPI** jobs have been tested on the HPC cluster. \\ | ||
Line 187: | Line 187: | ||
(Thanks to S.Sinigardi for sharing it)\\ | (Thanks to S.Sinigardi for sharing it)\\ | ||
+ | |||
+ | ==== Alternative MPI multinode submission ==== | ||
+ | It is possible to avoid the usage of mpirun.lsf and dinamically set the mpirun machine file in the following way: | ||
+ | |||
+ | 1) Create automatically the machine file to be using in the mpirun: | ||
+ | |||
+ | echo $LSB_HOSTS | awk ' | ||
+ | |||
+ | 2) Use this command to launch mpirun: | ||
+ | |||
+ | mpirun --machinefile / | ||
+ | |||
+ | A possible bsub submission is: | ||
+ | |||
+ | bsub -q hpc_inf_SL7 | ||
+ | |||
+ | where in the run_this_example.sh script you launch the previous commands: | ||
+ | |||
+ | ----run_this_example.sh---- | ||
+ | |||
+ | #!/bin/bash | ||
+ | |||
+ | echo $LSB_HOSTS | awk ' | ||
+ | |||
+ | mpirun --machinefile / | ||
==== Submitting GPU Jobs ==== | ==== Submitting GPU Jobs ==== | ||