[julia-users] Re: Starting Julia with Julia -p 2 provides 1 worker
A friend on mine encounters the same problem with another Macbook Pro model and El Captain OS. "julia -p N" doesn't work from terminal but addprocs() works as a charm
[julia-users] Re: Starting Julia with Julia -p 2 provides 1 worker
Calling *addprocs()* from REPL with for example *CPU_CORES* as argument returns 5 procs and 4 workers as expected, CPU_CORES returns 4 (physical cores are 2, but logical ones are 4). Also *rmprocs(n) *works fine, it lets me remove all procs but the first as I would expect. Il giorno mercoledì 20 aprile 2016 23:07:57 UTC+2, Greg Plowman ha scritto: > > Sorry, I can't really help you with command line julia -p 2 > But what happens when you call addprocs() from REPL? > Also, what is the value of CPU_CORES (typed at REPL)? > >
[julia-users] Re: Starting Julia with Julia -p 2 provides 1 worker
Calling *addprocs()* from REPL with for example *CPU_CORES* as argument returns 5 procs and 4 workers as expected, CPU_CORES returns 4 (physical cores are 2, but logical ones are 4). Also *rmprocs() *works fine, removing all procs but the first. Il giorno mercoledì 20 aprile 2016 23:07:57 UTC+2, Greg Plowman ha scritto: > > Sorry, I can't really help you with command line julia -p 2 > But what happens when you call addprocs() from REPL? > Also, what is the value of CPU_CORES (typed at REPL)? > >
[julia-users] Re: Starting Julia with Julia -p 2 provides 1 worker
Sorry, I can't really help you with command line julia -p 2 But what happens when you call addprocs() from REPL? Also, what is the value of CPU_CORES (typed at REPL)?
[julia-users] Re: Starting Julia with Julia -p 2 provides 1 worker
I downloaded version 0.4.5, again calling it with -p 2 returns 1 process and 1 worker... I really can't understand why Il giorno martedì 19 aprile 2016 17:37:05 UTC+2, Andre Bieler ha scritto: > > Huh.. I just tried julia -p 2 on version 0.4.5 and it actually starts with > 3 processes and 2 workers. > > So the docs are correct. > > Sorry i cant help with the 0.5 version.. > >
[julia-users] Re: Starting Julia with Julia -p 2 provides 1 worker
Huh.. I just tried julia -p 2 on version 0.4.5 and it actually starts with 3 processes and 2 workers. So the docs are correct. Sorry i cant help with the 0.5 version..
[julia-users] Re: Starting Julia with Julia -p 2 provides 1 worker
All of this seems very reasonable... Except for the fact that also nprocs() is returning 1 after calling julia -p 2 :D I call julia from terminal using *export PATH* in bash_profile, but the behavior is the same if I go in the directory and call *./Julia -p 2* Plus, I think I saw n workers after a call at julia -p n in Julia 0.4 on another machine, but not sure about it... (btw the doc really is misleading, maybe should be restated in more clearly, but it's a minor issue) Il giorno martedì 19 aprile 2016 15:55:13 UTC+2, Andre Bieler ha scritto: > > As Greg said, the total number of workers is one less than the number of > available processes. > There is always one master process (with id = 1, and not considered a > worker) and the remaining workers. > > So for *julia -p 3 *you will get one master process and two workers. > > The documentation may be misleading in this context, as it says: > Starting with julia -p n provides n worker processes on the local > machine. > > But *nworkers()* is actually n-1. > However, if you do a *@everywhere*, the expression will be executed on > all n > processes. >
[julia-users] Re: Starting Julia with Julia -p 2 provides 1 worker
As Greg said, the total number of workers is one less than the number of available processes. There is always one master process (with id = 1, and not considered a worker) and the remaining workers. So for *julia -p 3 *you will get one master process and two workers. The documentation may be misleading in this context, as it says: Starting with julia -p n provides n worker processes on the local machine. But *nworkers()* is actually n-1. However, if you do a *@everywhere*, the expression will be executed on all n processes.
[julia-users] Re: Starting Julia with Julia -p 2 provides 1 worker
julia -p 2 will start Julia with 2 processes. nprocs() will return 2 nworkers() will return 1 (1 less than nprocs()) http://docs.julialang.org/en/release-0.4/stdlib/parallel/?highlight=nworkers#Base.nworkers On Tuesday, April 19, 2016 at 6:58:30 PM UTC+10, Iacopo Poli wrote: > Hi, > > I'm trying to start Julia with more than one worker, but if I type in the > terminal for example "julia -p 2", then in the REPL nworkers() returns 1. > I have version *0.5.0-dev+3488 *and a Intel Core i5 (Macbook Pro Mid > 2012). > > Running system_profiler: > > "system_profiler SPHardwareDataType > > Hardware: > > Hardware Overview: > > > Model Name: MacBook Pro > > Model Identifier: MacBookPro9,2 > > ... > > Total Number of Cores: 2 > > ... > " > > So I should be able to start Julia with two workers... Any guess why this > isn't working? >
[julia-users] Re: Starting Julia with Julia -p 2 provides 1 worker
julia -p 2 will start Julia with 2 processes. nprocs() will return 2 nworkers() will return 2 (1 less than nprocs()) http://docs.julialang.org/en/release-0.4/stdlib/parallel/?highlight=nworkers#Base.nworkers On Tuesday, April 19, 2016 at 6:58:30 PM UTC+10, Iacopo Poli wrote: > Hi, > > I'm trying to start Julia with more than one worker, but if I type in the > terminal for example "julia -p 2", then in the REPL nworkers() returns 1. > I have version *0.5.0-dev+3488 *and a Intel Core i5 (Macbook Pro Mid > 2012). > > Running system_profiler: > > "system_profiler SPHardwareDataType > > Hardware: > > Hardware Overview: > > > Model Name: MacBook Pro > > Model Identifier: MacBookPro9,2 > > ... > > Total Number of Cores: 2 > > ... > " > > So I should be able to start Julia with two workers... Any guess why this > isn't working? >