OpenMP® Forum

Discussion on the OpenMP specification run by the OpenMP ARB. OpenMP and the OpenMP logo are registered trademarks of the OpenMP Architecture Review Board in the United States and other countries. All rights reserved.

-fopenmp Enable handling of OpenMP directives #pragma omp in C/C++ and !$omp in Fortran. When ‘-fopenmp’ is specified, the compiler generates parallel code according to the OpenMP Application Program Interface [b]v2.5[/b] http://www.openmp.org/. This option implies ‘-pthread’, and thus is only supported on targets that have support for ‘-pthread’.

Is that true? Does the latest version of gcc not have OpenMP 3? If so, where could I get it from?

I do not think that this information is correct.While I cannot prove that gcc 4.4.x has full OpenMP 3.0 support, I successfully used the task capabilities with gcc 4.4.1. The GOMP project webseite also states that gcc 4.4.x supports OpenMP 3.0: http://gcc.gnu.org/projects/gomp/.

Hey thanks...that was useful.Personally I feel that it is OpenMP's responsibility to mention in either a header file (omp.h) or a readme file bundled with gcc, about which version of OpenMP is being carried by that gcc.I wonder why they didn't do that.