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
|