Something went wrong on our end
-
John-Paul Robinson authored
Pass the output are to the sbatch via env params.
John-Paul Robinson authoredPass the output are to the sbatch via env params.
submit-pol-job 429 B
#!/bin/bash
# schedule a policy run on gpfs
outdir=$1
policy=$2
nodes=$3
cores=$4
ram=$5
partition=$6
filesystem=${7:-scratch}
time=${8:-60}
outfile=${9}
DIR=$outdir POLICYFILE=$policy FILESYSTEM=${filesystem} OUTFILE=${outfile} && \
DIR=$DIR POLICYFILE=$POLICYFILE FILESYSTEM=${FILESYSTEM} OUTFILE=${OUTFILE} \
sbatch \
-N $nodes \
-c $cores \
-t $time \
--mem-per-cpu=$ram \
-p $partition \
./run-mmpol.sh