Thanks for the suggestions everyone!
On Monday, January 25, 2016 at 4:11:25 AM UTC-8, [email protected] wrote: > > It would be easy to do this using the MPI.jl package. That's what I would > do, but only because I'm familiar with how it works. The native parallel > methods of Julia may work just as well, though. > > On Saturday, January 23, 2016 at 5:08:11 AM UTC+1, Ritchie Lee wrote: >> >> Let's say I have 10 julia scripts, scripts = ["script1.jl", "script2.jl", >> ...., "script10.jl"] and I would like to run them in parallel in separate >> Julia sessions, but 4 at a time (since I only have 4 cores on my machine). >> Is there any way to do this programmatically? >> >> I tried doing this: >> >> addprocs(4) >> pmap(include, scripts) >> >> or >> >> addprocs(4) >> @parallel for s in scripts >> include(s) >> end >> >> However, this seems to reuse the same session, so all the global consts >> in the script file are colliding. I would like to make sure that the >> namespaces are completely separate. >> >> Thanks! >> >
