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?
>

Reply via email to