-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_slurm.sh
26 lines (22 loc) · 1.01 KB
/
run_slurm.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
#SBATCH --job-name=pipeline_bench
#SBATCH --output=/ddn/gs1/home/manwareme/beethoven/pipeline/pipeline_out.out
#SBATCH --error=/ddn/gs1/home/manwareme/beethoven/pipeline/pipeline_err.err
#SBATCH --mail-type=END,FAIL
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=2
#SBATCH --mem-per-cpu=32g
#SBATCH --partition=geo
#SBATCH --mail-user=manwareme@nih.gov
export PATH=$PATH:/ddn/gs1/tools/cuda11.8/bin
export LD_LIBRARY_PATH=/ddn/gs1/biotools/R/lib64/R/customlib:/ddn/gs1/tools/cuda11.8/lib64:$LD_LIBRARY_PATH
if [ "$USER" != "songi2" ]; then
export R_LIBS_USER=/ddn/gs1/biotools/R/lib64/R/custompkg:$R_LIBS_USER:/ddn/gs1/biotools/R/lib64/R/library
else
export R_LIBS_USER=/ddn/gs1/home/songi2/r-libs:$R_LIBS_USER:/ddn/gs1/biotools/R/lib64/R/library
fi
# modify it into the proper directory path. and output/error paths in the
# # SBATCH directives
# USER_PROJDIR=/ddn/gs1/home/$USER/projects
USER_PROJDIR=/ddn/gs1/home/manwareme/beethoven/
nohup nice -4 Rscript $USER_PROJDIR/beethoven/inst/targets/targets_start.R