Skip to content

Commit

Permalink
More clang-format
Browse files Browse the repository at this point in the history
Signed-off-by: Luc Berger-Vergiat <[email protected]>
  • Loading branch information
lucbv committed Dec 17, 2024
1 parent 39d48d5 commit 0569e9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions blas/src/KokkosBlas2_ger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ void ger(const ExecutionSpace& space, const char trans[], const typename AViewTy
static_assert(std::is_same_v<typename AViewType::value_type, typename AViewType::non_const_value_type>,
"ger: AViewType must store non const values.");

// Check compatibility of dimensions at run time.
if ((A.extent(0) != x.extent(0)) || (A.extent(1) != y.extent(0))) {
// Check compatibility of dimensions at run time.
if ((A.extent(0) != x.extent(0)) || (A.extent(1) != y.extent(0))) {
std::ostringstream os;
os << "KokkosBlas::ger: Dimensions of A, x, and y do not match: "
<< "A is " << A.extent(0) << " by " << A.extent(1) << ", x has size " << x.extent(0) << ", y has size "
Expand Down
7 changes: 4 additions & 3 deletions blas/src/KokkosBlas3_trmm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ template <class execution_space, class AViewType, class BViewType>
void trmm(const execution_space& space, const char side[], const char uplo[], const char trans[], const char diag[],
typename BViewType::const_value_type& alpha, const AViewType& A, const BViewType& B) {
static_assert(Kokkos::is_execution_space_v<execution_space>,
"trmm: execution_space must be a Kokkos::execution_space."); static_assert(Kokkos::is_view_v<AViewType>,
"trmm: AViewType must be a "
"Kokkos::View.");
"trmm: execution_space must be a Kokkos::execution_space.");
static_assert(Kokkos::is_view_v<AViewType>,
"trmm: AViewType must be a "
"Kokkos::View.");
static_assert(Kokkos::is_view_v<BViewType>, "trmm: BViewType must be a Kokkos::View.");
static_assert(static_cast<int>(AViewType::rank) == 2, "trmm: AViewType must have rank 2.");
static_assert(static_cast<int>(BViewType::rank) == 2, "trmm: BViewType must have rank 2.");
Expand Down

0 comments on commit 0569e9d

Please sign in to comment.