diff options
author | Evgeniy Pavlov <evgeniy.pavlov@intel.com> | 2021-02-18 16:23:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-18 16:23:40 +0300 |
commit | 9381aff5dd40c1fa445b99e0dfb29e4e06c189f5 (patch) | |
tree | 6027592c30746de483697dfd89a710be67aa4a4e | |
parent | Fix for reduction stage of scan pattern (#125) (diff) | |
download | llvm-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.h | 2 |
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) \ |