Re: [julia-users] Re: Parallel computing and type-stability

2016-09-10 Thread Sleort
I see. Thanks for the information!

Re: [julia-users] Re: Parallel computing and type-stability

2016-09-10 Thread Yichao Yu
On Fri, Sep 9, 2016 at 11:16 PM, Sleort wrote: > @Yichao Yu: Sure. I'm aware that there is a lot of overhead in the inter > process communication. This was just a minimal test case, not something I > expect to run fast(er). (A silly nworker() implementation indeed;-)) I was >

[julia-users] Re: Parallel computing and type-stability

2016-09-09 Thread Sleort
@Yichao Yu: Sure. I'm aware that there is a lot of overhead in the inter process communication. This was just a minimal test case, not something I expect to run fast(er). (A silly nworker() implementation indeed;-)) I was just curious if it is possible to reduce the type instability showing up

[julia-users] Re: Parallel computing and type-stability

2016-09-09 Thread Richard Dennis
When I run this code in Julia 0.5.0-rc4 the code is much shorter and most of the red indicating type instability is gone. Cheers.

[julia-users] Re: Parallel computing: SharedArrays not updating on cluster

2016-06-24 Thread Matthew Pearce
As the others have said, it won't work like that. I found a few options: 1. DistributedArrays. Message passing handled in the background. Some limitations, but I've not used much. 2. SharedArrays on each machine. You can share memory between all the pids on a single machine, and

[julia-users] Re: Parallel computing

2016-05-22 Thread Chris Rackauckas
You need to use @everywhere to have the function defined on the workers. Can we see some code? On Saturday, May 21, 2016 at 6:33:17 PM UTC-7, SHORE SHEN wrote: > > Hi > > Im running a loop, and system shows that only 20% of CPU were used. I then > think that due to the fact that my CPU is 4

[julia-users] Re: Parallel computing

2016-05-22 Thread Nils Gudat
This is a rather broad question, and I would suggest that you have (another?) close look at the parallel documentation. The errors about functions not defined on worker processes e.g. suggest that you aren't using the

[julia-users] Re: parallel computing in julia

2016-05-20 Thread Andrei Zh
In addition to what Fred said, `addprocs()` adds new workers, i.e. processes, which are not necessary bound to your CPU cores. On Friday, May 20, 2016 at 6:05:05 AM UTC+3, SHORE SHEN wrote: > > Hi > > Im doing a loop and need parallel computing. > > from the doc, it is said to "julia -p n"

[julia-users] Re: parallel computing in julia

2016-05-20 Thread Fred
To start 4 cpus : $ julia -p 3 _ _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_)| Documentation: http://docs.julialang.org _ _ _| |_ __ _ | Type "?help" for help. | | | | | | |/ _` | | | | |_| | | | (_| | | Version 0.4.5

[julia-users] Re: parallel computing in julia

2016-05-20 Thread Fred
Hi, You have started julia and then you try to start it again with julia -p 2. just type julia -p 2 in a terminal before starting julia :) $ julia -p 2 _ _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_)| Documentation: