Skip to content

Commit

Permalink
[ROCm 5.6] Lower logging level from Warning to Info for incorrect Per…
Browse files Browse the repository at this point in the history
…fConfigs loaded from db
  • Loading branch information
junliume committed Jun 8, 2023
1 parent 44a66b5 commit 001afae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/include/miopen/find_solution.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ auto FindSolutionImpl(rank<1>,
{
return s.GetSolution(context, problem, config);
}
MIOPEN_LOG_WE("Invalid config loaded from Perf Db: "
MIOPEN_LOG_IE("Invalid config loaded from Perf Db: "
<< s.SolverDbId() << ": " << config << ". Performance may degrade.");
}
else if(!s.AltSolverDbId().empty() && db.Load(problem, s.AltSolverDbId(), config))
Expand All @@ -105,7 +105,7 @@ auto FindSolutionImpl(rank<1>,
{
return s.GetSolution(context, problem, config);
}
MIOPEN_LOG_WE("Invalid config loaded from Perf Db: "
MIOPEN_LOG_IE("Invalid config loaded from Perf Db: "
<< s.SolverDbId() << ": " << config << ". Performance may degrade.");
}
else
Expand Down
4 changes: 4 additions & 0 deletions src/include/miopen/logger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ enum class LoggingLevel
constexpr const LoggingLevel LogWELevel =
MIOPEN_INSTALLABLE ? miopen::LoggingLevel::Warning : miopen::LoggingLevel::Error;

constexpr const LoggingLevel LogIELevel =
MIOPEN_INSTALLABLE ? miopen::LoggingLevel::Info : miopen::LoggingLevel::Error;

namespace debug {

/// Quiet mode for debugging/testing purposes. All logging (including MIOPEN_ENABLE_LOGGING*)
Expand Down Expand Up @@ -345,6 +348,7 @@ std::string LoggingParseFunction(const char* func, const char* pretty_func);

// Warnings in installable builds, errors otherwise.
#define MIOPEN_LOG_WE(...) MIOPEN_LOG(LogWELevel, __VA_ARGS__)
#define MIOPEN_LOG_IE(...) MIOPEN_LOG(LogIELevel, __VA_ARGS__)

#define MIOPEN_LOG_DRIVER_CMD(...) \
do \
Expand Down

0 comments on commit 001afae

Please sign in to comment.