Print

Print


Dear Malick and Jaap,
Many thanks for your help. I can also confirm that once those lines are deleted, the program runs fine.
Sophocles

On 17 Dec 2013, at 18:09, Malick Fall wrote:

I confirm the post of M.j.j.de.vries , i run your code on parallel on a 32 cores server without  the assignation of the three variable and its works very well.

I don't see any need to assign these variables in your code, but  If you really need  it maybe you could take benefit of the "serial decl" statement (see http://www.doornik.com/ox/index.html?content=http://www.doornik.com/ox/oxsyntax.html#ox_syntax_Parfor )


Regards,

M.FALL
Le 17/12/2013 17:45, Vries, J.J. de a écrit :
[log in to unmask]" type="cite">
Hi Sophocles,

In the parallel loop you assign to static variables:
		s_mYt = mYt;
		s_ck = k;
		s_cT = T;
So 8 processes simultaneously assign to the same variable. I do not know whether this causes the error, but it is not sensible.

Greetings,
Jaap
________________________________________
Van: The ox-users list is aimed at all Ox users [[log in to unmask]] namens Sophocles Mavroeidis [[log in to unmask]]
Verzonden: dinsdag 17 december 2013 12:23
Aan: [log in to unmask]
Onderwerp: Oxrun stops working when using a parallel for loop

Dear All,

I'm getting the following error message when I try to run a program using a "parallel for" loop:

~~~
Ox Professional version 7.00 (Windows/U/MT) (C) J.A. Doornik, 1994-2013
Omega tilde = var(Ytilde) =
      0.96000

Ox reports errors: exit code= -1073741819!!
~~~

The program runs fine with a normal for loop. It also seems to work (sometimes) with parallel for loop when I change the parameter "dstabweight" on line 61 to the value 1.
I am running this on a Windows 2008 server with 8 cores.

(curiously, when the program runs in parallel mode, it takes about ten times less time than in non-parallel mode. I would have expected a factor of 8, given that I only have 8 cores).

I attach the files to run the program (they require the free version of ssfpack).

Any ideas?

Best,

Sophocles



--
Malick FALL

Doctorant en Sciences de Gestion - Moniteur en Finance
CREM-UMR CNRS 6211 - IGR-IAE - Bureau 47
11 Rue Jean Macé, 35708 Rennes
06 12 54 65 39