Skip to content

Instantly share code, notes, and snippets.

@TimQuelch
TimQuelch / 1-distributedwork.jl
Created Jul 20, 2021
Simple framework to run parallel jobs on a distributed system with Julia
View 1-distributedwork.jl
using Distributed
# Add worker processes. If on the HPC, use slurm, else use just regular CPU thread workers
if "SLURM_JOB_ID" in keys(ENV)
@info "Adding slurm procs"
using ClusterManagers
addprocs_slurm(parse(Int, ENV["SLURM_NTASKS"]), unbuffered="")
else
@info "Adding local procs"
addprocs()
View keybase.md

Keybase proof

I hereby claim:

  • I am timquelch on github.
  • I am timquelch (https://keybase.io/timquelch) on keybase.
  • I have a public key ASDH8BOZa3E_Zk7-A8daTvSUAys6v-J_MnQ8RbrpM8hlQAo

To claim this, I am signing this object: