Skip to content

Commit

Permalink
Avoid lambdas in constexpr branch for msvc/cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
crtrott committed Dec 9, 2023
1 parent 458910f commit 7dcf1de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions simd/unit_tests/include/TestSIMD_GeneratorCtors.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ inline void host_check_gen_ctor() {
simd_type blend;
blend.copy_from(expected, Kokkos::Experimental::element_aligned_tag());

#if !(defined(KOKKOS_ENABLE_CUDA) && defined(KOKKOS_COMPILER_MSVC))
if constexpr (std::is_same_v<Abi, Kokkos::Experimental::simd_abi::scalar>) {
simd_type basic(KOKKOS_LAMBDA(std::size_t i) { return init[i]; });
host_check_equality(basic, rhs, lanes);
Expand All @@ -63,6 +64,7 @@ inline void host_check_gen_ctor() {

host_check_equality(blend, result, lanes);
}
#endif
}

template <typename Abi, typename... DataTypes>
Expand Down

0 comments on commit 7dcf1de

Please sign in to comment.