PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

OpenMP and C++ exceptions

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
ChrisJ



Joined: 07 Sep 2006
Posts: 2

PostPosted: Thu Sep 07, 2006 3:17 pm    Post subject: OpenMP and C++ exceptions Reply with quote

Hi,

This has probably been documented before, but I don't seem to be able to find the citation. Do I take it that the use of pgCC -openmp disables the use of exceptions? I get a message from the compiler to this effect if I use a try{} catch{} in my code with OpenMP directives as well.

Thanks,

Chris
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 5952
Location: The Portland Group Inc.

PostPosted: Fri Sep 08, 2006 12:02 pm    Post subject: Reply with quote

Hi Chris,

Exceptions are not reentrant (.i.e not thread safe) so need to be disabled when using OpenMP. I'm not sure why this is not document (at least I can't find it in the PGI user's guide) but will try and find out. My guess is that it's an oversite.

Thanks,
Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group