<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title></title>
</head>
<body style="font-family:Arial;font-size:14px">
<p>Hello Antoine,<br>
<br>
Before judging that some code is just a "dirty hack" you should first get into the code and see hows things are written. The implementation in 5.5.2 was using OpenMP so I don't see anything dirty here. The implementation was unstable under OSX and Linux, and under Windows parallel_run was just making calls sequentially. So no "dirty hack" under Windows but just a shortcut. Octave does also the same with Matlatb's parfor : it just does things sequentially. However, even unstable, parallel_run was very useful (I used it a lot under Linux to do some Monte Carlo estimation on a 40 processor machine). It is a pity that it's re-engineering for 6.0 familiy was not a priority. <br>
<br>
S. <br>
<br>
Quoting Antoine Monmayrant <<a href="mailto:amonmayr@laas.fr">amonmayr@laas.fr</a>>:</p>
<blockquote style="border-left:2px solid blue;margin-left:2px;padding-left:12px;" type="cite">
<p>Hello,<br>
<br>
Are you using Windows or anything else?<br>
Because as far as I remember, parallel_run is just a dirty hack that only works under windows.<br>
On my linux install of scilab 6.0.2, I also have:<br>
--> parallel_run<br>
<br>
Undefined variable: parallel_run<br>
<br>
So it might be a bug in the documentation that should mention "windows only" like some other functions.<br>
<br>
Antoine<br>
<br>
<br>
Le Lundi, Septembre 23, 2019 15:46 CEST, fujimoto2005 <<a href="mailto:fujimoto2005@gmail.com">fujimoto2005@gmail.com</a>> a écrit:<br></p>
<blockquote style="border-left:2px solid blue;margin-left:2px;padding-left:12px;" type="cite">
<p>I wanted to use "parallel_run" and tried the sample script in the help page.<br>
But it did not work with the error message "undefined<br>
variable:parallel_run".<br>
Please teach me what is wrong?<br>
<br>
The sample script I used is as follows<br>
******<br>
for i = 1:10<br>
  res(i) = i*i;<br>
end;<br>
// for parallel_run, we need to have a function performing the computation<br>
function a=g(arg1)<br>
  a=arg1*arg1<br>
endfunction<br>
<br>
res = parallel_run(1:10, g);<br>
// => res = [1  4  9  16  25  36  49  64  81  100];<br>
*********<br>
<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html" target="_blank">https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html</a><br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><br>
<a href="https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users" target="_blank">https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users</a></p>
</blockquote>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab">users@lists.scilab</a>.<a href="orghttps://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users" target="_blank">orghttps://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users</a></blockquote>
<p><br>
<br></p>
</body>
</html>