Skip to content

Commit

Permalink
Workaround icpc warnings
Browse files Browse the repository at this point in the history
Workaround "missing return statement at end of non-void function" warnings triggering -Werror with intel classic compilers
Address issue #7031

Co-authored-by: Damien L-G <dalg24+github@gmail.com>
  • Loading branch information
ndellingwood and dalg24 committed May 24, 2024
1 parent 0410363 commit 7c67b02
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions containers/src/Kokkos_DynRankView.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1958,6 +1958,9 @@ 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
__builtin_unreachable();
#endif
}

} // namespace Impl
Expand Down Expand Up @@ -2055,6 +2058,9 @@ inline auto create_mirror_view(
return Kokkos::Impl::create_mirror(src, arg_prop);
}
}
#if defined KOKKOS_COMPILER_INTEL
__builtin_unreachable();
#endif
}

} // namespace Impl
Expand Down
6 changes: 6 additions & 0 deletions containers/src/Kokkos_DynamicView.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,9 @@ inline auto create_mirror(const Kokkos::Experimental::DynamicView<T, P...>& src,

return ret;
}
#if defined KOKKOS_COMPILER_INTEL
__builtin_unreachable();
#endif
}

} // namespace Impl
Expand Down Expand Up @@ -697,6 +700,9 @@ inline auto create_mirror_view(
return Kokkos::Impl::create_mirror(src, arg_prop);
}
}
#if defined KOKKOS_COMPILER_INTEL
__builtin_unreachable();
#endif
}

} // namespace Impl
Expand Down
6 changes: 6 additions & 0 deletions containers/src/Kokkos_OffsetView.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1864,6 +1864,9 @@ 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
__builtin_unreachable();
#endif
}

} // namespace Impl
Expand Down Expand Up @@ -1940,6 +1943,9 @@ inline auto create_mirror_view(
return Kokkos::Impl::create_mirror(src, arg_prop);
}
}
#if defined KOKKOS_COMPILER_INTEL
__builtin_unreachable();
#endif
}

} // namespace Impl
Expand Down
6 changes: 6 additions & 0 deletions core/src/Kokkos_CopyViews.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3495,6 +3495,9 @@ 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
__builtin_unreachable();
#endif
}
} // namespace Impl

Expand Down Expand Up @@ -3583,6 +3586,9 @@ inline auto create_mirror_view(
return Kokkos::Impl::create_mirror(src, arg_prop);
}
}
#if defined KOKKOS_COMPILER_INTEL
__builtin_unreachable();
#endif
}
} // namespace Impl

Expand Down

0 comments on commit 7c67b02

Please sign in to comment.