Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #
- #SBATCH --job-name=Test
- #SBATCH --output=OUT.%J
- #
- #SBATCH --partition=amd
- #SBATCH --nodes=1
- #SBATCH --ntasks-per-node=2
- #SBATCH --time=0:10:59
- #SBATCH --mail-type=none
- # Number of cores per task
- #SBATCH -c 20
- #
- #
- # Set OMP_NUM_THREADS to the same value as -c
- # with a fallback in case it isn't set.
- # SLURM_CPUS_PER_TASK is set to the value of -c, but only if -c is explicitly set
- if [ -n "$SLURM_CPUS_PER_TASK" ]; then
- omp_threads=$SLURM_CPUS_PER_TASK
- else
- omp_threads=1
- fi
- export OMP_NUM_THREADS=$omp_threads
- # Setup environment
- date >time_run.dat
- echo $SLURM_NTASKS
- echo $SLURM_CPUS_PER_TASK
- srun --mpi=pmi2 -K1 /data/home/oschib/fargOCA/rel/utils/disk_load_config disk1000.h5 config.info
- date>>time_run.dat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement