Skip to content

Commit

Permalink
nrm1: assert vector accessibility
Browse files Browse the repository at this point in the history
Signed-off-by: Carl Pearson <cwpears@sandia.gov>
  • Loading branch information
cwpearson committed Dec 17, 2024
1 parent d96c6ee commit cd6a786
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions blas/src/KokkosBlas1_nrm1.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ typename Kokkos::Details::InnerProductSpaceTraits<typename XVector::non_const_va
static_assert(Kokkos::is_execution_space<execution_space>::value,
"KokkosBlas::nrm1: execution_space must be a Kokkos::execution_space.");
static_assert(Kokkos::is_view<XVector>::value, "KokkosBlas::nrm1: XVector must be a Kokkos::View.");
static_assert(Kokkos::SpaceAccessibility<execution_space, typename XVector::memory_space>::accessible,
"KokkosBlas::nrm1: XVector must be accessible from execution_space");
static_assert(XVector::rank == 1,
"KokkosBlas::nrm1: "
"Both Vector inputs must have rank 1.");
Expand Down

0 comments on commit cd6a786

Please sign in to comment.