diff --git a/containers/src/Kokkos_DynRankView.hpp b/containers/src/Kokkos_DynRankView.hpp index 0e0489554ff..774acba45fb 100644 --- a/containers/src/Kokkos_DynRankView.hpp +++ b/containers/src/Kokkos_DynRankView.hpp @@ -1958,7 +1958,7 @@ inline auto create_mirror(const DynRankView& src, return dst_type(prop_copy, Impl::reconstructLayout(src.layout(), src.rank())); } -#if defined KOKKOS_COMPILER_INTEL +#if defined(KOKKOS_COMPILER_INTEL) || defined(KOKKOS_COMPILER_NVCC) __builtin_unreachable(); #endif } @@ -2045,7 +2045,7 @@ inline auto create_mirror_view( return Kokkos::Impl::choose_create_mirror(src, arg_prop); } } -#if defined KOKKOS_COMPILER_INTEL +#if defined(KOKKOS_COMPILER_INTEL) || defined(KOKKOS_COMPILER_NVCC) __builtin_unreachable(); #endif } diff --git a/containers/src/Kokkos_DynamicView.hpp b/containers/src/Kokkos_DynamicView.hpp index 1e50853c829..32a38aae3dc 100644 --- a/containers/src/Kokkos_DynamicView.hpp +++ b/containers/src/Kokkos_DynamicView.hpp @@ -621,7 +621,7 @@ inline auto create_mirror(const Kokkos::Experimental::DynamicView& src, return ret; } -#if defined KOKKOS_COMPILER_INTEL +#if defined(KOKKOS_COMPILER_INTEL) || defined(KOKKOS_COMPILER_NVCC) __builtin_unreachable(); #endif } @@ -716,7 +716,7 @@ inline auto create_mirror_view( return Kokkos::Impl::choose_create_mirror(src, arg_prop); } } -#if defined KOKKOS_COMPILER_INTEL +#if defined(KOKKOS_COMPILER_INTEL) || defined(KOKKOS_COMPILER_NVCC) __builtin_unreachable(); #endif } diff --git a/containers/src/Kokkos_OffsetView.hpp b/containers/src/Kokkos_OffsetView.hpp index 0c40ad25e6f..d0483a905c0 100644 --- a/containers/src/Kokkos_OffsetView.hpp +++ b/containers/src/Kokkos_OffsetView.hpp @@ -493,7 +493,7 @@ class OffsetView : public ViewTraits { return m_map.m_impl_handle[j0 * m_map.m_impl_offset.m_stride.S0 + j1 * m_map.m_impl_offset.m_stride.S1]; } -#if defined KOKKOS_COMPILER_INTEL +#if defined(KOKKOS_COMPILER_INTEL) __builtin_unreachable(); #endif } @@ -1833,7 +1833,7 @@ inline auto create_mirror(const Kokkos::Experimental::OffsetView& src, return typename Kokkos::Experimental::OffsetView::HostMirror( Kokkos::create_mirror(arg_prop, src.view()), src.begins()); } -#if defined KOKKOS_COMPILER_INTEL +#if defined(KOKKOS_COMPILER_INTEL) || defined(KOKKOS_COMPILER_NVCC) __builtin_unreachable(); #endif } @@ -1927,7 +1927,7 @@ inline auto create_mirror_view( return Kokkos::Impl::choose_create_mirror(src, arg_prop); } } -#if defined KOKKOS_COMPILER_INTEL +#if defined(KOKKOS_COMPILER_INTEL) || defined(KOKKOS_COMPILER_NVCC) __builtin_unreachable(); #endif } diff --git a/core/src/Kokkos_CopyViews.hpp b/core/src/Kokkos_CopyViews.hpp index 52ef477b762..51a22d76d45 100644 --- a/core/src/Kokkos_CopyViews.hpp +++ b/core/src/Kokkos_CopyViews.hpp @@ -3509,7 +3509,7 @@ inline auto create_mirror(const Kokkos::View& src, using dst_type = typename View::HostMirror; return dst_type(prop_copy, src.layout()); } -#if defined KOKKOS_COMPILER_INTEL +#if defined(KOKKOS_COMPILER_INTEL) || defined(KOKKOS_COMPILER_NVCC) __builtin_unreachable(); #endif } @@ -3619,7 +3619,7 @@ inline auto choose_create_mirror( } } -#if defined KOKKOS_COMPILER_INTEL +#if defined(KOKKOS_COMPILER_INTEL) || defined(KOKKOS_COMPILER_NVCC) __builtin_unreachable(); #endif } @@ -3655,7 +3655,7 @@ inline auto create_mirror_view( return Kokkos::Impl::choose_create_mirror(src, arg_prop); } } -#if defined KOKKOS_COMPILER_INTEL +#if defined(KOKKOS_COMPILER_INTEL) || defined(KOKKOS_COMPILER_NVCC) __builtin_unreachable(); #endif }