Exampe batch jobs for the std partition
Contents
OpenMP job
| 
line no.  | 
/sw/batch/examples/std-partition/openmp-job.sh | 
1234567891011121314151617181920 | 
#!/bin/bash#SBATCH --ntasks=1#SBATCH --cpus-per-task=8  # should be a multiple of 8#SBATCH --time=00:05:00#SBATCH --export=NONEsource /sw/batch/init.shexport OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK  # essentialexport OMP_PROC_BIND=spread                  # recommendedexport OMP_PLACES=cores                      # recommendedexport OMP_SCHEDULE=static                   # recommendedexport OMP_DISPLAY_ENV=verbose               # good to know# If --cpus-per-task is not a multiple of 8 check process binding# with export OMP_DISPLAY_ENV=verbose ! ./a.outexit | 
|---|
MPI job
| 
line no.  | 
/sw/batch/examples/std-partition/mpi-job.sh | 
123456789101112 | 
#!/bin/bash#SBATCH --ntasks=8  # should be a multiple of 8#SBATCH --time=00:05:00#SBATCH --export=NONEsource /sw/batch/init.shmodule switch env env/that-was-used-at-compile-timempirun ./a.outexit | 
|---|
Open-MPI job with more memory per core
| 
line no.  | 
/sw/batch/examples/std-partition/mpi-memory-job.openmpi.sh | 
12345678910111213141516171819 | 
#!/bin/bash## Open-MPI job which needs more memory per MPI-task than 4 GB##     memory per task = --cpus-per-task * 4 GB#     --ntasks * --cpus-per-task should be a multiple of 8##SBATCH --ntasks=4#SBATCH --cpus-per-task=2#SBATCH --time=00:05:00#SBATCH --export=NONEsource /sw/batch/init.shmodule switch env env/that-was-used-at-compile-timempirun -map-by node:pe=$SLURM_CPUS_PER_TASK -bind-to core ./a.outexit | 
|---|
Intel-MPI job with more memory per core
| 
line no.  | 
/sw/batch/examples/std-partition/mpi-memory-job.impi.sh | 
12345678910111213141516171819 | 
#!/bin/bash## Intel-MPI job which needs more memory per MPI-task than 4 GB##     memory per task = --cpus-per-task * 4 GB#     --ntasks * --cpus-per-task should be a multiple of 8##SBATCH --ntasks=4#SBATCH --cpus-per-task=2#SBATCH --time=00:05:00#SBATCH --export=NONEsource /sw/batch/init.shmodule switch env env/that-was-used-at-compile-timempirun ./a.outexit | 
|---|