Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KokkosBlas1_axpby.hpp: change debug macro guard for printInformation #2157

Merged
merged 2 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion blas/impl/KokkosBlas1_axpby_unification_attempt_traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
8 changes: 4 additions & 4 deletions blas/src/KokkosBlas1_axpby.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
#ifndef KOKKOSBLAS1_AXPBY_HPP_
#define KOKKOSBLAS1_AXPBY_HPP_

#ifdef HAVE_KOKKOSKERNELS_DEBUG
#if (KOKKOSKERNELS_DEBUG_LEVEL > 0)
#include <iostream>
#endif
#endif // KOKKOSKERNELS_DEBUG_LEVEL

#include <KokkosBlas1_axpby_spec.hpp>
#include <KokkosBlas_serial_axpy.hpp>
Expand Down Expand Up @@ -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(...)
Expand Down