Re: [julia-users] Too many processes for non-parallel Julia computation

2016-05-06 Thread Chris Rackauckas
No, -p 0 makes there be no worker processes which is the default, but that won't change the linear algebra threads. Instead, if you want to have BLAS use 1 thread, use blas_set_num_threads(1). On Friday, May 6, 2016 at 6:02:01 AM UTC-7, Jorge Fernández de Cossío Díaz wrote: > > I am doing linea

Re: [julia-users] Too many processes for non-parallel Julia computation

2016-05-06 Thread Jorge Fernández de Cossío Díaz
I am doing linear algebra. So if I want to force serial computation, I should do julia -p 1 myscript.jl? Will try this next week and let you know. (I don't access to the cluster now). Thanks. On Thu, May 5, 2016 at 6:41 PM, James Fairbanks wrote: > If the code is not parallel, then you should no

Re: [julia-users] Too many processes for non-parallel Julia computation

2016-05-05 Thread James Fairbanks
If the code is not parallel, then you should not request multiple processors. The builtin BLAS are set up for multiple threads by default. If you are doing a lot of linear algebra, then that will be parallel already. If you do julia -p then the BLAS are in serial. James

Re: [julia-users] Too many processes for non-parallel Julia computation

2016-05-05 Thread Jorge Fernández de Cossío Díaz
If I run a julia script on a cluster, should I request more than one process? (My calculation is not parallel) On Thursday, May 5, 2016 at 5:01:52 PM UTC-4, Yichao Yu wrote: > > On Thu, May 5, 2016 at 3:50 PM, Jorge Fernández de Cossío Díaz > > wrote: > > In my system, running julia from the co

Re: [julia-users] Too many processes for non-parallel Julia computation

2016-05-05 Thread Yichao Yu
On Thu, May 5, 2016 at 3:50 PM, Jorge Fernández de Cossío Díaz wrote: > In my system, running julia from the console to launch the REPL launches 3 > processes named Julia. > If I execute a julia script containing no parallel code, like > > julia myscript.jl > > I also get 3 processes, and all thre

[julia-users] Too many processes for non-parallel Julia computation

2016-05-05 Thread Jorge Fernández de Cossío Díaz
In my system, running julia from the console to launch the REPL launches 3 processes named Julia. If I execute a julia script containing no parallel code, like julia myscript.jl I also get 3 processes, and all three seem to do work. I have NOT aliased julia to julia -p 3. I am using Ubuntu 15.