Skip to content

Commit

Permalink
protect msvc for execution par
Browse files Browse the repository at this point in the history
  • Loading branch information
alfC committed Feb 6, 2025
1 parent e6bec56 commit a56daad
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions test/redux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,11 @@ auto main() -> int { // NOLINT(readability-function-cognitive-complexity,bugpro
}
#endif

#if(defined(__has_include) && __has_include(<execution>))
#if !defined(__NVCC__) && !defined(__NVCOMPILER) && !(defined(__clang__) && defined(__CUDA__)) && (!defined(__clang_major__) || (__clang_major__ > 7))
#if(!defined(__GLIBCXX__) || (__GLIBCXX__ >= 20220000)) && !defined(_LIBCPP_VERSION)
#if !defined(__apple_build_version__) && (!defined(__INTEL_LLVM_COMPILER) || (__INTEL_LLVM_COMPILER > 20240000))
#if(__cplusplus >= 202002L)
#if(defined(__has_include) && __has_include(<execution>))
#if !defined(__NVCC__) && !defined(__NVCOMPILER) && !(defined(__clang__) && defined(__CUDA__)) && (!defined(__clang_major__) || (__clang_major__ > 7))
#if(!defined(__GLIBCXX__) || (__GLIBCXX__ >= 20220000)) && !defined(_LIBCPP_VERSION)
#if !defined(__apple_build_version__) && (!defined(__INTEL_LLVM_COMPILER) || (__INTEL_LLVM_COMPILER > 20240000))
{
auto const accumulator = [&] (watch = watch("transform reduce[unseq]")) { // NOLINT(fuchsia-default-arguments-declarations)
multi::array<double, 1> ret(K2D.extension(), 0.0);
Expand Down Expand Up @@ -398,11 +399,12 @@ auto main() -> int { // NOLINT(readability-function-cognitive-complexity,bugpro
BOOST_TEST( std::abs( accumulator[ix] - static_cast<double>(ix) * ny * (ny - 1.0) / 2.0 ) < 1.0e-6);
}
}
#endif
#endif
#endif
#endif
#endif
#endif // __NVCC__
#endif
#endif // __NVCC__

// {
// auto const accumulator = [&](auto&& init) {
Expand Down

0 comments on commit a56daad

Please sign in to comment.