[julia-users] Combining modules with parallel computing

2014-09-07 Thread Sam Kaplan
Hi Richard, Give @everywhere using NLSolve a try. Hope that helps. Sam

[julia-users] Re: Parallel loop, what wroong ? Parallel is slower then normal

2015-01-31 Thread Sam Kaplan
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

[julia-users] Possible bug in @spawnat or fetch?

2015-04-29 Thread Sam Kaplan
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()

Re: [julia-users] Possible bug in @spawnat or fetch?

2015-04-30 Thread Sam Kaplan
> 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

[julia-users] Expected behviour of addprocs(n, cman=SSHManager(; machines=machines)

2014-04-21 Thread Sam Kaplan
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

[julia-users] DArray scope problem -- user error or julia bug?

2014-10-12 Thread Sam Kaplan
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

[julia-users] Re: recommended reading for c-call interfaces?

2015-01-08 Thread Sam Kaplan
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

Re: [julia-users] poor performance of threads

2016-03-04 Thread Sam Kaplan
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

Re: [julia-users] poor performance of threads

2016-03-06 Thread Sam Kaplan
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

Re: [julia-users] poor performance of threads

2016-03-07 Thread Sam Kaplan
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