Skip to content
Snippets Groups Projects
script.sh 495 B
Newer Older
William E Warriner's avatar
William E Warriner committed
#!/bin/bash

#SBATCH --nodes=3
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=1
#SBATCH --partition=amd-hdr100
#SBATCH --time=05:00
#SBATCH --mem-per-cpu=1G
#SBATCH --output=out.log
#SBATCH --error=out.log

for i in $(seq 1 $SLURM_JOB_NUM_NODES)
do

  nohup srun \
    --export=ALL \
    --exclusive \
    --cpu-bind=verbose \
    --nodes=1 \
    --ntasks=$SLURM_NTASKS_PER_NODE \
    --cpus-per-task=$SLURM_CPUS_PER_TASK \
    --mem-per-cpu=$SLURM_MEM_PER_CPU \
    hostname \

done

wait