Versions Compared

Key

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

...

Code Block
languagebash
swbatch run_script.swb

sbatch run_script.sb

The run_script.swb example

Code Block
languagebash
titlerun_script.swb
#!/bin/bash

#SBATCH --job-name="hostname"
#SBATCH --output="hostname.%j.%N.out"
#SBATCH --error="hostname.%j.%N.err" 
#SBATCH --partition=gpux1

srun /bin/hostname # this is our "application"

and the second method is to submit with Slurm directly.

Code Block
languagebash
swbatch run_script.sb

The run_script.sb example

Code Block
languagebash
#!/bin/bash

#SBATCH --job-name="hostname"
#SBATCH --output="hostname.%j.%N.out"
#SBATCH --error="hostname.%j.%N.err" 
#SBATCH --partition=gpux1 
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1 
#SBATCH --export=ALL 
#SBATCH -t 00:10:00 

srun /bin/hostname # this is our "application"swb

sbatch run_script.sb

Documentation

...

System Overview

...