Advertisement
George5610

slurm sh

Jul 4th, 2022
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. #!/bin/bash
  2. #SBATCH --job-name=LAT # Job name
  3. #SBATCH --ntasks=2 # Number of MPI tasks (i.e. processes)
  4. #SBATCH --nodes=2 # Maximum number of nodes to be allocated
  5. #SBATCH --partition=but2 # Partition to use
  6.  
  7. echo "Date = $(date)"
  8. echo "Hostname = $(hostname -s)"
  9. echo "Working Directory = $(pwd)"
  10. echo ""
  11. echo "Number of Nodes Allocated = $SLURM_JOB_NUM_NODES"
  12. echo "Number of Tasks Allocated = $SLURM_NTASKS"
  13. echo "Number of Cores/Task Allocated = $SLURM_CPUS_PER_TASK"
  14.  
  15. mpirun --mca btl_tcp_if_include eth0 -np ${SLURM_NTASKS} /clusterfs/OSUmicro/libexec/osu-micro-benchmarks/mpi/pt2pt/osu_latency
  16. ~
  17. ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement