Skip to content

Commit

Permalink
address more bogus warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ndellingwood committed Jul 31, 2024
1 parent efe6668 commit b49c941
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions containers/src/Kokkos_DynRankView.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2134,6 +2134,9 @@ auto create_mirror_view_and_copy(
deep_copy(mirror, src);
return mirror;
}
#if defined(KOKKOS_COMPILER_NVCC)
__builtin_unreachable();
#endif
}

template <class Space, class T, class... P>
Expand Down
3 changes: 3 additions & 0 deletions containers/src/Kokkos_DynamicView.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -998,6 +998,9 @@ auto create_mirror_view_and_copy(
deep_copy(mirror, src);
return mirror;
}
#if defined(KOKKOS_COMPILER_NVCC)
__builtin_unreachable();
#endif
}

template <class Space, class T, class... P,
Expand Down
3 changes: 3 additions & 0 deletions core/src/Kokkos_CopyViews.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3763,6 +3763,9 @@ auto create_mirror_view_and_copy(
deep_copy(mirror, src);
return mirror;
}
#if defined(KOKKOS_COMPILER_NVCC)
__builtin_unreachable();
#endif
}

// Previously when using auto here, the intel compiler 19.3 would
Expand Down

0 comments on commit b49c941

Please sign in to comment.