Macro
SEQAN_OMP_PRAGMA
Portable conditional #pragma issuing if OpenMP is enabled.
Parameters
The string to issue behind |
Remarks
This macro uses portable pragma generation, dependent on the macro _OPENMP being defined (as by the OpenMP standard).
This is useful for disabling OpenMP pragmas on compilers that do not support OpenMP to suppress warnings.
Examples
Parallelize loop with OpenMP if OpenMP is enabled:
for (int i = 0; i < x; ++i) {
// Do work.
}
Make an addition atomic if OpenMP is enabled:
i += 1;
SeqAn - Sequence Analysis Library - www.seqan.de