[Omp] A problem with guard objects and exceptions on Intel

eduncan Eric.Duncan at Sun.COM
Wed Aug 23 08:58:36 PDT 2006


Maybe I am not running exactly the same code, but what I tried on sparc 
using Sun's compiler, works fine even if I set the stacksize (master and 
slave threads) down to 500 kbytes.  It might work with even a smaller 
stack, but this is as small as I tried.

Michael Suess wrote:

>Dieter,
>
>I tried:
>
>$ulimit -s 4000
>$ulimit -s 8000
>$ulimit -s 16000
>$ulimit -s 32000
>$ulimit -s unlimited
>
>Nothing made any difference (and I still do not understand why it should - I 
>am hardly putting anything on the stacks at all).
>
>Thanks, Michael
>
>
>  
>
>>Micheal,
>>
>>try something in between small and unlimited.
>>I had such a case as well.
>>
>>Dieter
>>
>>Michael Suess schrieb:
>>    
>>
>>>On Wednesday 23 August 2006 01:38, Micah Elliott wrote:
>>>      
>>>
>>>>On 2006-08-22 Michael Suess wrote:
>>>>        
>>>>
>>>>>I have just published a blog entry comparing the merits of
>>>>>guard objects vs. the critical construct (with C++ and OpenMP).
>>>>>The problem I have now is: My test programs with exceptions and
>>>>>guard objects do not work for the Intel Compiler. Since this
>>>>>would not be the first time I missed something, I figured I
>>>>>would double check here before filing a bug with Intel.
>>>>>
>>>>>So if you find the time, please take a look at the code for the
>>>>>guard object, enclosed in the following article:
>>>>>http://www.thinkingparallel.com/2006/08/21/scoped-locking-vs-critical-i
>>>>>n- openmp-a-personal-shootout/
>>>>>          
>>>>>
>>>>I didn't take much time in looking at the code, but I did compile
>>>>what I found on the site with icpc, and saw that you'll get the
>>>>SEGV if you don't increase your stack limit (e.g., "ulimit -s
>>>>unlimited" in bash).
>>>>        
>>>>
>>>Hi Micah,
>>>
>>>your advice does not seem to help:
>>>
>>>$ ulimit -s unlimited
>>>
>>>$ ulimit -s
>>>unlimited
>>>
>>>$ icpc test_omp_guard_exceptions.cpp -o test_omp_guard_exceptions
>>>omp_guard.cpp -openmp
>>>test_omp_guard_exceptions.cpp(18) : (col. 2) remark: OpenMP DEFINED
>>>REGION WAS PARALLELIZED.
>>>
>>>$ ./test_omp_guard_exceptions
>>>Segmentation fault
>>>
>>>I am curious, though: Why do you think the stack size is too small? I am
>>>not using much stack space in my program, as far as I can see...
>>>
>>>Thanks anyways,
>>>Michael
>>>      
>>>
>
>  
>



More information about the Omp mailing list