diff --git a/blas/impl/KokkosBlas1_axpby_unification_attempt_traits.hpp b/blas/impl/KokkosBlas1_axpby_unification_attempt_traits.hpp index 1a66637b13..9d200e892d 100644 --- a/blas/impl/KokkosBlas1_axpby_unification_attempt_traits.hpp +++ b/blas/impl/KokkosBlas1_axpby_unification_attempt_traits.hpp @@ -768,7 +768,7 @@ struct AxpbyUnificationAttemptTraits { // ******************************************************************** // Routine to print information on input variables and internal variables // ******************************************************************** -#ifdef HAVE_KOKKOSKERNELS_DEBUG +#if (KOKKOSKERNELS_DEBUG_LEVEL > 0) static void printInformation(std::ostream& os, std::string const& headerMsg) { os << headerMsg << ": AV = " << typeid(AV).name() diff --git a/blas/src/KokkosBlas1_axpby.hpp b/blas/src/KokkosBlas1_axpby.hpp index 55da4f437a..0f95786dfc 100644 --- a/blas/src/KokkosBlas1_axpby.hpp +++ b/blas/src/KokkosBlas1_axpby.hpp @@ -17,9 +17,9 @@ #ifndef KOKKOSBLAS1_AXPBY_HPP_ #define KOKKOSBLAS1_AXPBY_HPP_ -#ifdef HAVE_KOKKOSKERNELS_DEBUG +#if (KOKKOSKERNELS_DEBUG_LEVEL > 0) #include -#endif +#endif // KOKKOSKERNELS_DEBUG_LEVEL #include #include @@ -73,9 +73,9 @@ void axpby(const execution_space& exec_space, const AV& a, const XMV& X, // Perform compile time checks and run time checks. // ********************************************************************** AxpbyTraits::performChecks(a, X, b, Y); -#ifdef HAVE_KOKKOSKERNELS_DEBUG +#if (KOKKOSKERNELS_DEBUG_LEVEL > 0) AxpbyTraits::printInformation(std::cout, "axpby(), unif information"); -#endif +#endif // KOKKOSKERNELS_DEBUG_LEVEL // ********************************************************************** // Call Impl::Axpby<...>::axpby(...)