I'm trying to build a small code that works across multiple platforms and compilers. I use assertions, most of which can be turned off, but when compiling with PGI's pgicpp
using -mp
for OpenMP support, it automatically uses the --no_exceptions
option: everywhere in my code with a "throw" statement generates a fatal compiler error. ("support for exception handling is disabled")
Is there a define
d macro I can test to hide the throw
statements on PGI? I usually work with gcc, which has GCC_VERSION
and the like. I can't find any documentation describing these macros in PGI.