W dniu 21 lipca 2010 17:21 użytkownik ~suv <suv-sf@...58...> napisał:
GCC 4.0.1 does not support OpenMP. GCC 4.2.1 _does_ support OpenMP according to its man page:
-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 v2.5 http://www.openmp.org/.
<omp.h> does exist:
$ ll /usr/lib/gcc/i686-apple-darwin9/4.2.1/include/omp.h -rw-r--r-- 1 root wheel 2793 Jul 7 2009 /usr/lib/gcc/i686-apple-darwin9/4.2.1/include/omp.h
What do I miss here?
It might be a bug in the AX_OPENMP autoconf macro (in m4/ax_openmp.m4). The first thing that comes to mind is that it relies on $IFS being set to space. Do you modify $IFS anywhere in the OSX build script?
Regards, Krzysztof