Difference between revisions of "Parallel job submission"
From ScientificComputing
Line 59: | Line 59: | ||
== Example == | == Example == | ||
− | + | Launch an openMP program | |
$ export OMP_NUM_THREADS=8 | $ export OMP_NUM_THREADS=8 | ||
$ bsub -n 8 ./hello_omp | $ bsub -n 8 ./hello_omp | ||
Line 65: | Line 65: | ||
Job <8147290> is submitted to queue <normal.4h>. | Job <8147290> is submitted to queue <normal.4h>. | ||
+ | Try launching an MPI program | ||
$ unset OMP_NUM_THREADS | $ unset OMP_NUM_THREADS | ||
$ bsub -n 240 mpirun ./hello_mpi | $ bsub -n 240 mpirun ./hello_mpi | ||
Line 72: | Line 73: | ||
Request aborted by esub. Job not submitted. | Request aborted by esub. Job not submitted. | ||
− | $ module load intel | + | Load a compiler and compatible MPI module before launching an MPI code |
+ | $ module load intel openmpi | ||
$ bsub -n 240 mpirun ./hello_mpi | $ bsub -n 240 mpirun ./hello_mpi | ||
MPI job. | MPI job. |
Revision as of 13:32, 3 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
|
Example
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>.