Hi Richard,
Give
@everywhere using NLSolve
a try. Hope that helps.
Sam
Hi Paul,
If D is allocated on the master, then Julia will need to pass D from the
master to the workers. I'm guessing that this communication might be more
expensive than the compute in your loops. It may be useful to take a look
at distributed arrays in the parallel section of the Julia docs
Hello,
I have the following code example:
addprocs(1)
function test1()
ref = @spawnat workers()[1] begin
x = 1
end
y = fetch(ref)
@show y
end
function test2()
ref = @spawnat workers()[1] begin
x = 1
end
x = fetch(ref)
@show x
end
function main()
> wrote:
>
>> Yes, this looks like a bug. In fact the below causes an error:
>>
>> function test2()
>> ref = @spawnat workers()[1] begin
>>x=1
>> end;
>> x=2
>> end
>>
>> Can you open an issue on
Hello,
I have a quick question about the SSHManager, and how it works with
addprocs. If,
machines = [machine1, machine2]
and I do,
cman = Base.SSHManager(;machines=machines)
addprocs(2, cman=cman)
for pid in workers()
fetch(@spawnat pid run(`hostname`))
end
Then I see that one process is run
Dear All,
I have being having an issue with Distributed Arrays in Julia 0.3. It
seems that the DArray is not broadcast to the workers when it is declared
inside an if block. Here are two codes listings. Listing 1 works and
declares the DArray before the if block. Listing 2 does not work and
Hi Andraeas,
The documentation has a paragraph about this:
http://docs.julialang.org/en/release-0.3/manual/calling-c-and-fortran-code/
:
"Currently, it is not possible to reliably pass structs and other
non-primitive types by *value* from Julia to/from C libraries. However,
*pointers* to stru
Hello,
Perhaps it might help the discussion to try running one of the Julia
threading performance benchmark codes on your MacBook Air. For example:
https://github.com/JuliaLang/julia/blob/master/test/perf/threads/laplace3d/laplace3d.jl
Presumably that code is type-stable and compute-bound sinc
Hi Tomas,
If I read that example correctly, then you need to modify the code a little
before running. I think those two timings that you report are both from
running the threaded code. Do you agree? I think passing the option
"verify=true" to "laplace3d" on line 134 should do the trick to get
Cool. Thanks for being persistent! I guess it can help with your original
problem since now you know it's possible :) It might give you some
confidence that once you address the issues raised by Tim, and if you
subsequently still do not get a performance boost, then you can think more
about
10 matches
Mail list logo