Skip to content

Commit

Permalink
add python scripts to submit script
Browse files Browse the repository at this point in the history
  • Loading branch information
djpasseyjr committed Feb 29, 2024
1 parent aea5adb commit 7760bcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions experiments/exp1/slurm_submit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ GIGS=32
# Arguments for sbatch. Sets the appropriate time limit and directory
FLAGS="--ntasks=1 --mem=${GIGS}G --cpus-per-task=1 --time=$HOURS_PER_SIM:00:00 --chdir=$DATADIR"
# Total number of jobs
NJOBS=294
NJOBS=$(python3 -c "import runner.exp_tools as ex; ex.print_num_jobs()")
for((n=0; n<$NJOBS; n+=1)); do

incomplete=$(python -c "import exp_tools; print(exp_tools.is_incomplete("$n"))")
incomplete=$(python3 -c "import runner.exp_tools as ex; print(ex.is_incomplete("$n"))")

if [[ "$incomplete" == 'True' ]]; then
# Submit the multiple parameter job script to the clusters
Expand Down

0 comments on commit 7760bcf

Please sign in to comment.