Skip to content

Commit

Permalink
Fix bogus warnings for cuda/11.2,cuda/11.4 with gcc/8.5
Browse files Browse the repository at this point in the history
Workaround for bogus "missing return statement at end of non-void function" warnings
  • Loading branch information
ndellingwood committed Jul 31, 2024
1 parent 94e6275 commit efe6668
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions containers/src/Kokkos_DynRankView.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1958,7 +1958,7 @@ inline auto create_mirror(const DynRankView<T, P...>& 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
}
Expand Down Expand Up @@ -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
}
Expand Down
4 changes: 2 additions & 2 deletions containers/src/Kokkos_DynamicView.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ inline auto create_mirror(const Kokkos::Experimental::DynamicView<T, P...>& src,

return ret;
}
#if defined KOKKOS_COMPILER_INTEL
#if defined(KOKKOS_COMPILER_INTEL) || defined(KOKKOS_COMPILER_NVCC)
__builtin_unreachable();
#endif
}
Expand Down Expand Up @@ -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
}
Expand Down
6 changes: 3 additions & 3 deletions containers/src/Kokkos_OffsetView.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ class OffsetView : public ViewTraits<DataType, Properties...> {
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
}
Expand Down Expand Up @@ -1833,7 +1833,7 @@ inline auto create_mirror(const Kokkos::Experimental::OffsetView<T, P...>& src,
return typename Kokkos::Experimental::OffsetView<T, P...>::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
}
Expand Down Expand Up @@ -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
}
Expand Down
6 changes: 3 additions & 3 deletions core/src/Kokkos_CopyViews.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3509,7 +3509,7 @@ inline auto create_mirror(const Kokkos::View<T, P...>& src,
using dst_type = typename View<T, P...>::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
}
Expand Down Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit efe6668

Please sign in to comment.