Advertisement
Guest User

Untitled

a guest
Oct 31st, 2023
9
0
167 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. #!/bin/bash
  2. #
  3. #SBATCH --job-name=Test
  4. #SBATCH --output=OUT.%J
  5. #
  6. #SBATCH --partition=amd
  7. #SBATCH --nodes=1
  8. #SBATCH --ntasks-per-node=2
  9. #SBATCH --time=0:10:59
  10.  
  11. #SBATCH --mail-type=none
  12.  
  13. # Number of cores per task
  14. #SBATCH -c 20
  15. #
  16. #
  17.  
  18. # Set OMP_NUM_THREADS to the same value as -c
  19. # with a fallback in case it isn't set.
  20. # SLURM_CPUS_PER_TASK is set to the value of -c, but only if -c is explicitly set
  21. if [ -n "$SLURM_CPUS_PER_TASK" ]; then
  22. omp_threads=$SLURM_CPUS_PER_TASK
  23. else
  24. omp_threads=1
  25. fi
  26. export OMP_NUM_THREADS=$omp_threads
  27.  
  28. # Setup environment
  29.  
  30. date >time_run.dat
  31. echo $SLURM_NTASKS
  32. echo $SLURM_CPUS_PER_TASK
  33. srun --mpi=pmi2 -K1 /data/home/oschib/fargOCA/rel/utils/disk_load_config disk1000.h5 config.info
  34. date>>time_run.dat
  35.  
  36.  
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement