summaryrefslogtreecommitdiffstats
path: root/pstl
diff options
context:
space:
mode:
authorLouis Dionne <ldionne@apple.com>2019-05-30 21:09:19 +0000
committerLouis Dionne <ldionne@apple.com>2019-05-30 21:09:19 +0000
commite38a82405b86f6d92da3d6b97f45ecd09bb9b682 (patch)
tree847fbedf7766163a136930ed21480c2e07aadc87 /pstl
parent41dc5526a69d13856b6dc4811e5e7cc89f45b284 (diff)
downloadbcm5719-llvm-e38a82405b86f6d92da3d6b97f45ecd09bb9b682.tar.gz
bcm5719-llvm-e38a82405b86f6d92da3d6b97f45ecd09bb9b682.zip
[pstl] Use OpenMP pragmas with Clang, which supports them
Most importantly, Clang doesn't seem to support the non-OpenMP pragmas that were being used previously. llvm-svn: 362155
Diffstat (limited to 'pstl')
-rw-r--r--pstl/include/pstl/internal/pstl_config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pstl/include/pstl/internal/pstl_config.h b/pstl/include/pstl/internal/pstl_config.h
index a6867cac40c..72f31c31f5c 100644
--- a/pstl/include/pstl/internal/pstl_config.h
+++ b/pstl/include/pstl/internal/pstl_config.h
@@ -50,7 +50,7 @@
#endif
// Enable SIMD for compilers that support OpenMP 4.0
-#if (_OPENMP >= 201307) || (__INTEL_COMPILER >= 1600) || (!defined(__INTEL_COMPILER) && _PSTL_GCC_VERSION >= 40900)
+#if (_OPENMP >= 201307) || (__INTEL_COMPILER >= 1600) || (!defined(__INTEL_COMPILER) && _PSTL_GCC_VERSION >= 40900) || defined(__clang__)
# define _PSTL_PRAGMA_SIMD _PSTL_PRAGMA(omp simd)
# define _PSTL_PRAGMA_DECLARE_SIMD _PSTL_PRAGMA(omp declare simd)
# define _PSTL_PRAGMA_SIMD_REDUCTION(PRM) _PSTL_PRAGMA(omp simd reduction(PRM))
OpenPOWER on IntegriCloud