...
Code Block |
---|
|
swbatch run_script.swb
sbatch run_script.sb |
The run_script.swb example
Code Block |
---|
language | bash |
---|
title | run_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 |
---|
|
swbatch run_script.sb |
The run_script.sb example
Code Block |
---|
|
#!/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
...