This is a script where you tell Vertigo how to run your job. You specify the resources needed, some job details, and the actually commands to be run.
scheduler.sh
.
#!/bin/bash
.
#SBATCH --nodes=1
and
#SBATCH --ntasks-per-node=1
.
#SBATCH --cpus-per-task=threads
, where
threads
should be replaced by the number of threads you require.
For instance,
#SBATCH --cpus-per-task=4
will allocate 4 threads.
#SBATCH --mem=RAM
, where
RAM
should be replaced by the amount of memory you require.
For instance,
#SBATCH --mem=8G
will allocate 8 gigabytes of RAM.
#SBATCH --partition=queue
, where
queue
should be replaced by one of
debug
,
standard
, or
parallel
.
Not sure what queue to use?
#SBATCH --job-name=name
, where
name
should be replaced by a name of your choice.
For instance,
#SBATCH --job-name=exampleJob
.
If you want to run several jobs, make sure to give them different names!
#SBATCH -o outputName.out
, where
outputName
should be replaced by a file name of your choice.
For instance,
#SBATCH -o exampleJob.out
.
#SBATCH -e errorName.err
, where
errorName
should be replaced by a file name of your choice.
For instance,
#SBATCH -e exampleJob.err
.
myProgramme.jl
, I would type
julia myProgramme.jl
, so I would add that to my submission script.
chmod +x scheduler.sh
.
Note:
DO NOT RUN scheduler.sh DIRECTLY!
Use the
submit command
instead.
All in all, your file should look like this scheduler.sh example:
#!/bin/bash
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=4
#SBATCH --mem=8G
#SBATCH --partition=parallel
#SBATCH --job-name=exampleJob
#SBATCH -o exampleJob.out
#SBATCH -e exampleJob.err
julia myProgramme.jl