OpenMP and C++ exceptions

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

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