aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeniy Pavlov <evgeniy.pavlov@intel.com>2021-02-18 16:23:40 +0300
committerGitHub <noreply@github.com>2021-02-18 16:23:40 +0300
commit9381aff5dd40c1fa445b99e0dfb29e4e06c189f5 (patch)
tree6027592c30746de483697dfd89a710be67aa4a4e
parentFix for reduction stage of scan pattern (#125) (diff)
downloadllvm-project-9381aff5dd40c1fa445b99e0dfb29e4e06c189f5.tar.gz
llvm-project-9381aff5dd40c1fa445b99e0dfb29e4e06c189f5.tar.bz2
llvm-project-9381aff5dd40c1fa445b99e0dfb29e4e06c189f5.zip
Add _PSTL_PRAGMA_SIMD_ORDERED_MONOTONIC_2ARGS definition in case of the use of standard library headers (#127)
Signed-off-by: Pavlov, Evgeniy <evgeniy.pavlov@intel.com>
-rw-r--r--include/oneapi/dpl/pstl/onedpl_config.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/oneapi/dpl/pstl/onedpl_config.h b/include/oneapi/dpl/pstl/onedpl_config.h
index c8aacfdf1979..383a5505331a 100644
--- a/include/oneapi/dpl/pstl/onedpl_config.h
+++ b/include/oneapi/dpl/pstl/onedpl_config.h
@@ -193,6 +193,8 @@
#define _ONEDPL_MONOTONIC_PRESENT (__INTEL_COMPILER >= 1800)
#if (defined(_PSTL_PRAGMA_SIMD_ORDERED_MONOTONIC) && _PSTL_MONOTONIC_PRESENT)
# define _ONEDPL_PRAGMA_SIMD_ORDERED_MONOTONIC(PRM) _PSTL_PRAGMA_SIMD_ORDERED_MONOTONIC(PRM)
+# define _ONEDPL_PRAGMA_SIMD_ORDERED_MONOTONIC_2ARGS(PRM1, PRM2) \
+ _PSTL_PRAGMA_SIMD_ORDERED_MONOTONIC_2ARGS(PRM1, PRM2)
#elif _ONEDPL_MONOTONIC_PRESENT
# define _ONEDPL_PRAGMA_SIMD_ORDERED_MONOTONIC(PRM) _ONEDPL_PRAGMA(omp ordered simd monotonic(PRM))
# define _ONEDPL_PRAGMA_SIMD_ORDERED_MONOTONIC_2ARGS(PRM1, PRM2) \