Do I need to #include <omp.h> in my C/C++ sources?

c, gcc, openmp

Solution

You only need it to call OMP APIs. If all you need are pragmas you don't need to include it.

Problem

Is it necessary to include omp.h in my C/C++ sources? Why? Or why not? Does the gcc compiler include it by default when used with the -fopenmp flag? It doesn't seem te make a differance.

Original source