#!/bin/bash #BSUB -J My_array[1-5] #job name AND job array #BSUB -n 3 #number of cores #BSUB -R span[ptile=1] #BSUB -W 00:10 #walltime limit: hh:mm ###BSUB -q queuename #specify queue is optional #BSUB -o Output_%J_%I.out #output - %J is the job-id %I is the job-array index #BSUB -e Error_%J_%I.err #error - %J is the job-id %I is the job-array index #To compile a.out from hello_omp.F90 for this example, do: #module load PrgEnv-intel #mpif90 -qopenmp hello_omp.F90 # Program_name_and_options module load PrgEnv-intel export OMP_NUM_THREADS=2 mpirun ./a.out