-
-
Save andreasnoack/45e71b24c3d932362137079d2788f026 to your computer and use it in GitHub Desktop.
Running Julia batch on SGE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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