-
Notifications
You must be signed in to change notification settings - Fork 0
/
slurm_clustermq.tmpl
20 lines (18 loc) · 1.02 KB
/
slurm_clustermq.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
# From https://github.com/mschubert/clustermq/wiki/SLURM
# This needs to be copied onto HiperGator
#SBATCH --job-name={{ job_name }} # job name
#SBATCH --partition=hpg-default # partition
##SBATCH --mail-type=ALL # uncomment for notifications for each worker
##SBATCH --mail-user=youremail@ufl.edu # uncomment for notifications for each worker
#SBATCH --output={{ log_file | logs/workers/pipeline%j_%a.out }} # you can add .%a for array index
#SBATCH --error={{ log_file | logs/workers/pipeline%j_%a.err}} # log file
#SBATCH --mem-per-cpu={{ memory | 8GB }} # memory
#SBATCH --array=1-{{ n_jobs }} # job array
#SBATCH --cpus-per-task={{ cores | 1 }}
#SBATCH --time={{ time | 1440 }}
source /etc/profile
ulimit -v $(( 1024 * {{ memory | 8192 }} ))
module load R/4.0 # currently R 4.1 causes an "invalid user" error
module load pandoc # Uncomment if Rmarkdown is rendered.
CMQ_AUTH={{ auth }} R --no-save --no-restore -e 'clustermq:::worker("{{ master }}")'