Difference between revisions of "Parallel job submission"
From ScientificComputing
m (Jarunanp moved page Submit a parallel job to Parallel job submission without leaving a redirect) |
(→Example) |
||
Line 39: | Line 39: | ||
<table style="width: 100%;"> | <table style="width: 100%;"> | ||
<tr valign=top> | <tr valign=top> | ||
− | <td style="width: | + | <td style="width: 30%; text-align:left"> |
< [[Job submission | Submit a job]] | < [[Job submission | Submit a job]] | ||
</td> | </td> | ||
− | <td style="width: | + | <td style="width: 35%; text-align:center"> |
+ | [[Sandbox Home | Home]] | ||
+ | </td> | ||
+ | <td style="width: 35%; text-align:right"> | ||
[[Job monitoring | Monitor a job]] > | [[Job monitoring | Monitor a job]] > | ||
</td> | </td> | ||
</tr> | </tr> | ||
</table> | </table> |
Revision as of 15:34, 10 May 2021
- Runs on a single compute node
- Can use up to 24 processors
- Number of processors must be defined in $OMP_NUM_THREADS
export OMP_NUM_THREADS=8 bsub -n 8 ./program
Distributed memory job (MPI)
- Runs on multiple compute nodes
- Can use tens or even hundreds of processors
- Program must be launched using mpirun
module load compiler module load mpi_library bsub -n 240 mpirun ./program
Example
$ export OMP_NUM_THREADS=8 $ bsub -n 8 ./hello_omp Generic job. Job <8147290> is submitted to queue <normal.4h>.
$ unset OMP_NUM_THREADS $ bsub -n 240 mpirun ./hello_mpi MPI job. Your environment is not configured for MPI. Please load the module(s) needed by your job before executing 'bsub'. Request aborted by esub. Job not submitted.
$ module load intel open_mpi $ bsub -n 240 mpirun ./hello_mpi MPI job. Job <8147303> is submitted to queue <normal.4h>.