[Omp] A problem with guard objects and exceptions on Intel
Dieter an Mey
anmey at rz.rwth-aachen.de
Wed Aug 23 06:59:03 PDT 2006
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-in-
>>> 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
>
--
--------------------------------------------------------------------
Dieter an Mey
High Performance Computing Hochleistungsrechnen
RWTH Aachen University Rechen- und Kommunikations-
Center for Computing and Communication zentrum der RWTH Aachen
phone: ++49-(0)241-80-24377 Seffenter Weg 23
fax: ++49-(0)241-80-22134 52074 Aachen, Germany
email: anmey at rz.rwth-aachen.de
--------------------------------------------------------------------
More information about the Omp
mailing list