Does the following work?

julia> @everywhere begin
       include("ee.jl")
       end

julia> wsum = @parallel (+) for ii in 1:16384
          sq(ii)
       end

It also helps to give us your versioninfo().

On Friday, August 29, 2014 9:11:52 PM UTC-4, Travis Porco wrote:
>
> Hi, interactive works fine with 32, script fails for smaller numbers. 
>
> Julia Version 0.3.1-pre+405 (2014-08-27 20:11 UTC) Commit 444fafe* (2 days 
> old master), Ubuntu 12.04.3 LTS (GNU/Linux 3.2.0-54-virtual x86_64).
>
> Thanks.
>
>
> On Friday, August 29, 2014 10:15:54 AM UTC-7, Travis Porco wrote:
>>
>> Hello--I'd like to be able to run something like this:
>> nohup ../julia/julia -p 32 < mscript.jl
>> where inside mscript.jl, I would like each worker to read in and have 
>> access to a large script (something like require("analysis.jl") )
>> and then call a function defined in my own file, nside which various 
>> pieces of a computation are done in parallel.
>> Does anyone have a working example? Nothing I have tried has worked (I 
>> must have just misunderstood the manual). 
>> Thanks.
>>
>

Reply via email to