Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
merging with CCBR/activeDev gerge branch 'activeDev' of https://githu…
Browse files Browse the repository at this point in the history
  • Loading branch information
tovahmarkowitz committed Nov 2, 2018
2 parents f2a9b3a + 7e07271 commit 1621904
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions submit_slurm.template
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
#


cd $SLURM_SUBMIT_DIR

Expand Down Expand Up @@ -28,10 +28,16 @@ mv $R/Reports/makeasnake.log $R/Reports/makeasnake.log.$modtime2

touch $R/Reports/makeasnake.log
touch $R/Reports/snakemake.log
BUY_IN_NODE=$(ACCOUNT_SPONSOR=$(sacctmgr -rn list user | awk '{print $2}') && scontrol show partitions | grep -i $ACCOUNT_SPONSOR -B1 | grep '^PartitionName' | cut -d '=' -f2 | grep -iv 'gpu'| tr '\n' ',' | sed 's/.$//')

#sbatch $Slrm_J --partition=centos7 --gres=lscratch:200 --time=24:00:00 --mail-type=BEGIN,END,FAIL $R/pipeline_ctrl.sh
sbatch $Slrm_J --partition=norm --gres=lscratch:200 --time=10-00:00:00 --mail-type=BEGIN,END,FAIL $R/pipeline_ctrl.sh
# sbatch --partition=ccr,norm --gres=lscratch:200 --time=120:00:00 $R/pipeline_ctrl.sh


if [[ $BUY_IN_NODE =~ "ccr" ]]; then
BUY_IN_NODE="ccr,norm"
sed -i 's/\"norm\"/\"ccr,norm\"/g' $R/cluster.json
else
BUY_IN_NODE="norm"
fi

sbatch $Slrm_J --partition=$BUY_IN_NODE --gres=lscratch:200 --time=120:00:00 --mail-type=BEGIN,END,FAIL $R/pipeline_ctrl.sh
#sbatch $Slrm_J --partition=centos7 --gres=lscratch:200 --time=24:00:00 --mail-type=BEGIN,END,FAIL $R/pipeline_ctrl.sh
#sbatch $Slrm_J --partition=norm --gres=lscratch:200 --time=10-00:00:00 --mail-type=BEGIN,END,FAIL $R/pipeline_ctrl.sh
#sbatch --partition=ccr,norm --gres=lscratch:200 --time=120:00:00 $R/pipeline_ctrl.sh

0 comments on commit 1621904

Please sign in to comment.