-
Notifications
You must be signed in to change notification settings - Fork 3
Running jobs
ddamoursNRC edited this page Jan 22, 2021
·
11 revisions
Trixie use the slurm scheduler to manage jobs. Compute Canada has a very good guide for using slurm to submit jobs to a cluster most of which is applicable for Trixie: https://docs.computecanada.ca/wiki/Running_jobs
Here is a simple job which runs the python code hello.py
Contents of hello.py
print('Hello world')
Contents of hello-job.sh
#!/bin/bash
#SBATCH -J helloworld
module load miniconda3-4.8.2-gcc-9.2.0-sbqd2xu
srun python ~/hello.py
Submit job:
sbatch ./hello-job.sh
Output will be located in slurm-.out
In order for a job to run on Trixie, it must be "billed" against an approved project. Users are able to charge different projects depending on what their activity is for.
See here for the Account Codes