diff --git a/src/include/miopen/find_solution.hpp b/src/include/miopen/find_solution.hpp index 2a87fa0200..ab675f138a 100644 --- a/src/include/miopen/find_solution.hpp +++ b/src/include/miopen/find_solution.hpp @@ -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)) @@ -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 diff --git a/src/include/miopen/logger.hpp b/src/include/miopen/logger.hpp index ec3fb940e9..bf8d13218e 100644 --- a/src/include/miopen/logger.hpp +++ b/src/include/miopen/logger.hpp @@ -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*) @@ -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 \