Hi,
I am running Julia on a single machine with multiple processes. I am
porting code to work on a cluster with a shared filesystem.
The statement:
@everywhere include("/path/to/file")
works just fine.
The statement
@everywhere include(fname)
does not.
Here's the error message:
exception on 3: ERROR: fname not defined
in eval at Z:\home\ihnorton\tmp\julia-packaging\win64\julia-master\base\
sysimg.jl:7
in anonymous at multi.jl:1310
exception on 2: ERROR: fname not defined
in eval at Z:\home\ihnorton\tmp\julia-packaging\win64\julia-master\base\
sysimg.jl:7
in anonymous at multi.jl:1310
from which one can see I started julia with -p 2.
I've been trying several things to get this to work. My attempts revolve
around wrapping an outer macro around
@everywhere include(...)
to convert fname to a string before passing it to the above line of code.
My guess is that this is easily doable, esp. once you know how to do it.
Parenthetically, @everywhere quotes everything for remote interpretation,
but I imagine the usage I'm attempting is common and should therefore be
supported.
Suggestions are welcome.
Thanks!