1 # Check if $CC supports openmp.
2 # While clang (3.5) accepts the -fopenmp flag, it produces bad code
3 # on some PolyBench benchmarks, so it is blacklisted.
4 AC_DEFUN([AX_CHECK_OPENMP], [
7 AC_MSG_CHECKING([for OpenMP support by $CC])
8 echo | $CC -x c - -fsyntax-only -fopenmp -Werror >/dev/null 2>/dev/null
12 AC_MSG_RESULT($HAVE_OPENMP)
13 if test $HAVE_OPENMP = yes; then
14 $CC --version | grep clang > /dev/null
15 if test $? -eq 0; then
16 AC_MSG_NOTICE([clang blacklisted])