Is the C99 _Pragma supported by OpenMP? The more common #pragma is first discussed on Page #21:
In C/C++, OpenMP directives are specified by using the #pragma mechanism provided by the C and C++ standards.
Which could imply that a compliant OpenMP c99 compiler would translate something like:
- Code: Select all
_Pragma("omp parallel for")
into
- Code: Select all
#pragma omp parallel for
and so be compliant.
As well as being an operator, it can appear as a result of macro expansion; e.g.
- Code: Select all
#define PARFOR _Pragma("omp parallel for")
In any case, I only have gcc, which does appear to support the use of _Pragma like this for OpenMP. Is this well supported? Do other C99 compilers also support _Pragma?
Cheers,
PGK
