Skip to content

Commit

Permalink
Backup
Browse files Browse the repository at this point in the history
  • Loading branch information
eeprude committed Oct 22, 2023
1 parent 61ac820 commit 12d1fd4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
7 changes: 4 additions & 3 deletions blas/impl/KokkosBlas1_axpby_unification_attempt_traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,11 +393,12 @@ struct AxpbyUnificationAttemptTraits {
": one must have either both X and Y as rank 1, or both X and Y as "
"rank 2");

if constexpr (!Kokkos::ArithTraits<AtInputScalarTypeY_nonConst>::is_complex) {
if constexpr (!Kokkos::ArithTraits<
AtInputScalarTypeY_nonConst>::is_complex) {
static_assert(
(!Kokkos::ArithTraits<AtInputScalarTypeA_nonConst>::is_complex) &&
(!Kokkos::ArithTraits<AtInputScalarTypeX_nonConst>::is_complex) &&
(!Kokkos::ArithTraits<AtInputScalarTypeB_nonConst>::is_complex),
(!Kokkos::ArithTraits<AtInputScalarTypeX_nonConst>::is_complex) &&
(!Kokkos::ArithTraits<AtInputScalarTypeB_nonConst>::is_complex),
"KokkosBlas::Impl::AxpbyUnificationAttemptTraits::performChecks()"
": if Y is not complex, then A, X and B cannot be complex");
}
Expand Down
8 changes: 6 additions & 2 deletions blas/unit_test/Test_Blas2_ger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,12 @@ GerTester<ScalarX, tLayoutX, ScalarY, tLayoutY, ScalarA, tLayoutA,
// large enough to require 'relTol' to value 5.0e-3. The same
// calculations show no discrepancies for calculations with double.
// ****************************************************************
_absTol(std::is_same<_AuxType, float>::value ? 1.0e-6 : (std::is_same<_AuxType, double>::value ? 1.0e-9 : 0)),
_relTol(std::is_same<_AuxType, float>::value ? 5.0e-3 : (std::is_same<_AuxType, double>::value ? 1.0e-6 : 0)),
_absTol(std::is_same<_AuxType, float>::value
? 1.0e-6
: (std::is_same<_AuxType, double>::value ? 1.0e-9 : 0)),
_relTol(std::is_same<_AuxType, float>::value
? 5.0e-3
: (std::is_same<_AuxType, double>::value ? 1.0e-6 : 0)),
_M(-1),
_N(-1),
_useAnalyticalResults(false),
Expand Down

0 comments on commit 12d1fd4

Please sign in to comment.