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 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 <[email protected] > <javascript:>> wrote: > >> 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 >> > >
