[Scilab-users] parallel_run on linux with 8 cores problem with nb_workers

lukasz_kocot lukasz.kocot at sosnowa40.pl
Thu Jan 3 20:55:19 CET 2013


Hi all,

Did any one can explain why example from scilab help are executed only once?
function a=g(arg1)
disp("called on "+string(arg1));
  a=arg1*arg1;
disp("computed "+string(a));
endfunction
res=parallel_run(1:6, g);

If i change to parallel_run(1:24,g) execution occure only 3 times.

Situation is changed only if i set 'nb_workers' to 8 - then it work on all
cores, and when i set it to 1, the it work only on 1 core.

Regarding to help, default  value should be 0 and it should mean to use all
cores i have in system. Behaviour is same even if i manually set nb_workers
to 0.

(Now i know solution, But i don't know reason of it, is it a problem with my
instalation ort system or mistake in help. I decide to place here this post
becouse maybe someone else have similar problem and waste a lot of time for
it liki i have done).



--
View this message in context: http://mailinglists.scilab.org/parallel-run-on-linux-with-8-cores-problem-with-nb-workers-tp4025610.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.



More information about the users mailing list