
21
©2012 SGI
MPI+OpenMP Hybrid job script(sample)
– 24 hybrid parallel job(8MPI x 3 threads)
– Define number of MPI for np, number of threads per MPI for th.
– Use omplace instead of dplace.
– insert following before command name.
omplace -nt ${th} -c 0-23:bs=${th}+st=3
– -c means using 3cores from core 0 to core 23.
$ cat go.csh
#!/bin/csh -x
#BSUB -q C
#BSUB -n 24
#BSUB -o hy1.out
limit stacksize unlimited
set np=8
set th=3
setenv OMP_NUM_THREADS ${th}
mpirun -np ${np} omplace -nt ${th} -c 0-23:bs=${th}+st=3 ./a.out
Comentarios a estos manuales