Versions Compared

Key

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

...

Code Block
languagecpp
#!/bin/bash
#SBATCH --account=type-your-project-name
#SBATCH --time=00:30:00
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=10
#SBATCH --cpus-per-task=1
#SBATCH --output=ray_%A.out

module load ray/2.3.1

srun --mpi=pmi2 -n 10 Ray -o test -p test_file_1.fastq test_file_2.fastq -k 31

Example 2: Using five nodes, with sixteen tasks per node (one core per task). Notice that the srun -n option is set to 5 * 16 = 80:

Code Block
languagecpp
#!/bin/bash
#SBATCH --account=type-your-project-name
#SBATCH --time=00:10:00
#SBATCH --nodes=5
#SBATCH --ntasks-per-node=16
#SBATCH --cpus-per-task=1
#SBATCH --output=ray_%A.out

module load ray/2.3.1

srun --mpi=pmi2 -n 80 Ray -o test -p test_file_1.fastq test_file_2.fastq -k 31

...