Skip to content

Commit

Permalink
batched/dense/impl: assertm -> assert
Browse files Browse the repository at this point in the history
  • Loading branch information
e10harvey committed Jun 7, 2023
1 parent 079c762 commit eb3104b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions batched/dense/impl/KokkosBatched_Gemv_Team_Impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ struct TeamGemv<MemberType, Trans::NoTranspose, Algo::Gemv::Unblocked> {
"Batched TeamGemv requires rank-3 A matrix (use "
"KokkosBlas::TeamGemv for regular rank-2 matrix)";
if constexpr (Kokkos::is_dyn_rank_view<AViewType>::value)
assertm(A.rank_dynamic() == 3, assert_msg) else static_assert(
assert(A.rank_dynamic() == 3 && assert_msg) else static_assert(
AViewType::rank == 3, assert_msg);

if (A.extent(0) == 1) {
Expand Down Expand Up @@ -87,7 +87,7 @@ struct TeamGemv<MemberType, Trans::NoTranspose, Algo::Gemv::Blocked> {
"Batched TeamGemv requires rank-3 A matrix (use "
"KokkosBlas::TeamGemv for regular rank-2 matrix)";
if constexpr (Kokkos::is_dyn_rank_view<AViewType>::value)
assertm(A.rank_dynamic() == 3, assert_msg) else static_assert(
assert(A.rank_dynamic() == 3 && assert_msg) else static_assert(
AViewType::rank == 3, assert_msg);
Kokkos::abort(
"KokkosBlas::TeamGemv<Algo::Gemv::Blocked> for rank-3 matrix is NOT "
Expand All @@ -110,7 +110,7 @@ struct TeamGemv<MemberType, Trans::Transpose, Algo::Gemv::Unblocked> {
"Batched TeamGemv requires rank-3 A matrix (use "
"KokkosBlas::TeamGemv for regular rank-2 matrix)";
if constexpr (Kokkos::is_dyn_rank_view<AViewType>::value)
assertm(A.rank_dynamic() == 3, assert_msg) else static_assert(
assert(A.rank_dynamic() == 3 && assert_msg) else static_assert(
AViewType::rank == 3, assert_msg);
if (A.extent(0) == 1) {
KokkosBlas::
Expand Down Expand Up @@ -143,7 +143,7 @@ struct TeamGemv<MemberType, Trans::Transpose, Algo::Gemv::Blocked> {
"Batched TeamGemv requires rank-3 A matrix (use "
"KokkosBlas::TeamGemv for regular rank-2 matrix)";
if constexpr (Kokkos::is_dyn_rank_view<AViewType>::value)
assertm(A.rank_dynamic() == 3, assert_msg) else static_assert(
assert(A.rank_dynamic() == 3 && assert_msg) else static_assert(
AViewType::rank == 3, assert_msg);
Kokkos::abort(
"KokkosBlas::TeamGemv<Algo::Gemv::Blocked> for rank-3 matrix is NOT "
Expand Down

0 comments on commit eb3104b

Please sign in to comment.