Try `@everywhere using Dierckx` On Thu, Jun 2, 2016 at 3:49 PM, Ethan Anderes <[email protected]> wrote:
> I’m looking for help setting up a parallel job spread across different > servers. I would like to use my laptop as the master node. I’m getting > errors when using packages and I’m not sure what I’m doing wrong. Any > help would be appreciated > > _ > _ _ _(_)_ | A fresh approach to technical computing > (_) | (_) (_) | Documentation: http://docs.julialang.org > _ _ _| |_ __ _ | Type "?help" for help. > | | | | | | |/ _` | | > | | |_| | | | (_| | | Version 0.4.6-pre+36 (2016-05-19 19:11 UTC) > _/ |\__'_|_|_|\__'_| | Commit 1e3e941 (14 days old release-0.4) > |__/ | x86_64-apple-darwin15.5.0 > > julia> machines = ["[email protected]", "[email protected]"] > 2-element Array{ASCIIString,1}: > "[email protected]" > "[email protected]" > > julia> addprocs( > machines, > tunnel=true, > dir="/home/anderes/", > exename="/usr/local/bin/julia", > topology=:master_slave, > ) > 2-element Array{Int64,1}: > 2 > 3 > > julia> using Dierckx > WARNING: node state is inconsistent: node 2 failed to load cache from > /Users/ethananderes/.julia/lib/v0.4/Dierckx.ji > WARNING: node state is inconsistent: node 3 failed to load cache from > /Users/ethananderes/.julia/lib/v0.4/Dierckx.ji > > julia> @everywhere spl = Dierckx.Spline1D([1., 2., 3.], [1., 2., 3.], k=2) > ERROR: On worker 2: > ERROR: On worker 2: > UndefVarError: Dierckx not defined > in eval at ./sysimg.jl:14 > in anonymous at multi.jl:1394 > in anonymous at multi.jl:923 > in run_work_thunk at multi.jl:661 > [inlined code] from multi.jl:923 > in anonymous at task.jl:63 > in remotecall_fetch at multi.jl:747 > in remotecall_fetch at multi.jl:750 > in anonymous at multi.jl:1396 > > ...and 1 other exceptions. > > in sync_end at ./task.jl:413 > in anonymous at multi.jl:1405 > > Note: I’ve got Dierckx installed and working on the remote servers (not > even sure if that is needed). Also, as you can see below, I can get the > code to run fine if I have the workers on my local machine. > > julia> addprocs(2, topology=:master_slave) > 2-element Array{Int64,1}: > 2 > 3 > > julia> using Dierckx > > julia> @everywhere spl = Dierckx.Spline1D([1., 2., 3.], [1., 2., 3.], k=2) > > Thanks! > >
