Difference between revisions of "Parallel job submission"
From ScientificComputing
Line 58: | Line 58: | ||
</table> | </table> | ||
− | == | + | == Examples == |
Launch an openMP program | Launch an openMP program | ||
$ export OMP_NUM_THREADS=8 | $ export OMP_NUM_THREADS=8 |
Revision as of 09:24, 14 June 2021
$ export OMP_NUM_THREADS=8 $ bsub -n 8 ./program |
Distributed memory job (MPI)
$ module load gcc/6.3.0 openmpi/4.0.2 $ bsub -n 240 mpirun ./program
|
Examples
Launch an openMP program
$ export OMP_NUM_THREADS=8 $ bsub -n 8 ./hello_omp Generic job. Job <8147290> is submitted to queue <normal.4h>.
Try launching an MPI program
$ 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.
Load a compiler and compatible MPI module before launching an MPI code
$ module load intel openmpi $ bsub -n 240 mpirun ./hello_mpi MPI job. Job <8147303> is submitted to queue <normal.4h>.