Skip to content

Instantly share code, notes, and snippets.

@kailaix
Created February 2, 2019 21:22
Show Gist options
  • Select an option

  • Save kailaix/d73b89c0fe57c00bfb536805cc969be2 to your computer and use it in GitHub Desktop.

Select an option

Save kailaix/d73b89c0fe57c00bfb536805cc969be2 to your computer and use it in GitHub Desktop.
Running jobs in parallel
for n in 50 60 70 80 90 100
do
julia euro_main.jl $n 2>&1 | tee -a euro$n.log &
done
wait %1 %2 %3 %4 %5 %6
for n in 50 70 90 110 130 150
do
julia flap_main.jl $n 2>&1 | tee -a flap$n.log &
done
@kailaix
Copy link
Author

kailaix commented Feb 2, 2019

In the case where we want to submit a job using slurm, use

srun --gres=gpu julia euro_main.jl $n 2>&1 | tee -a euro$n.log &

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment