Application exits prematurely with OpenMp with the error code : Fatal User Error 1002: Not all work-sharing constructs executed by all threads?

Before it first appears in the call to pop_runnable_method. But private variables are undefined on entry to the parallel region.

Up vote 0 down vote favorite share g+ share fb share tw.

Thanks parallel openmp link|improve this question edited Jan 18 '10 at 17:43 asked Jan 9 '10 at 8:15Noona141114 55% accept rate.

Before it first appears in the call to pop_runnable_method. But private variables are undefined on entry to the parallel region. I also think your sharing of exception_occurred is a little fishy since it suggests that an exception on any thread should be noticed by any thread, not just the thread in which it is noticed.

Of course, that may be your intent. Cheers Mark.

Thanks for your reply mark, there are 2 ways to make a variable private to a thread, the one that you suggested, and the one that I am using where I define them as private in the pragma clause, and they are declared right before the code that I pasted, otherwise I'd have gotten a compilation error, and yes that's my intent of using the flag exceptionOccured. – Noona Jan 11 '10 at 11:21 Yes, you've defined curr_proc_info in your pragma clause, but you haven't assigned it a value before passing it into the function pop_runnable_method. If that function requires curr_proc_info to have a value you will have problems.

If that function assigns a value to curr_proc_info I'm out of ideas. – High Performance Mark Jan 11 '10 at 12:45 I want to assign values to it in the function that I am calling (using call by reference). The reason behind the problem has to do with OpenMp scheduling or something OpenMp related, that's where I am hoping to get advice.

– Noona Jan 12 '10 at 3:24 So if you remove the schedule clause and let OpenMP use its defaults, your code runs correctly? – High Performance Mark Jan 13 '10 at 2:47 yes, when I disable OpenMp support in Visual studio the program runs correctly. – Noona Jan 13 '10 at 13:48.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions