Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titlearray.slurm
#!/bin/bash
#SBATCH --job-name=JobNameHere
#SBATCH --partition=PartitionNameHere
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --time=01:00:00
#SBATCH --export=ALL
#SBATCH --mail-user=YourEmailAddress
#SBATCH --mail-type=ALL

cd $SHARED_SCRATCH/SomeDir/

/path/to/myProgram < $SHARED_SCRATCH/SomeDir/job.$SLURM_ARRAY_TASK_ID.in

...

Code Block
titlearray.slurm
#!/bin/bash
#SBATCH --job-name=JobNameHere
#SBATCH --partition=PartitionNameHere
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --time=01:00:00
#SBATCH --export=ALL
#SBATCH --mail-user=YourEmailAddress
#SBATCH --mail-type=ALL
#SBATCH --array=0-10,50

cd $SHARED_SCRATCH/SomeDir/

/path/to/myProgram < $SHARED_SCRATCH/SomeDir/job.$SLURM_ARRAY_TASK_ID.in

...