Skip to content

Commit

Permalink
Abort on out-of-bounds access on the host side instead of throwing
Browse files Browse the repository at this point in the history
  • Loading branch information
dalg24 committed Mar 9, 2024
1 parent 6b1c3d0 commit 525ec9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/impl/Kokkos_ViewMapping.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3630,7 +3630,7 @@ KOKKOS_INLINE_FUNCTION void view_verify_operator_bounds(
int n = snprintf(buffer, LEN, "View bounds error of view %s (",
label.c_str());
view_error_operator_bounds<0>(buffer + n, LEN - n, map, args...);
Kokkos::Impl::throw_runtime_exception(std::string(buffer));))
Kokkos::abort(buffer);))

KOKKOS_IF_ON_DEVICE((
/* Check #1: is there a SharedAllocationRecord?
Expand Down

0 comments on commit 525ec9c

Please sign in to comment.