Skip to content

Instantly share code, notes, and snippets.

  • Save andreasnoack/45e71b24c3d932362137079d2788f026 to your computer and use it in GitHub Desktop.
Save andreasnoack/45e71b24c3d932362137079d2788f026 to your computer and use it in GitHub Desktop.
Running Julia batch on SGE
function parsemachine(f::String)
wks = []
for s in eachline(f)
l = split(s)
push!(wks, (l[1], parse(Int, l[2])))
end
return wks
end
addprocs(parsemachine(ENV["PE_HOSTFILE"]))
@everywhere print(readstring(`hostname`))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment