Skip to content

Commit ef832b9

Browse files
[QNN EP] Reverting a recent logging change for QNN GPU only, (microsoft#24444)
### Description Mapping ORT verbose logging back to QnnGpu Debug logging. ### Motivation and Context Why is this change required? What problem does it solve? As of now this change is required for the QnnGpu backend to run models correctly. It's necessity is mentioned in this commit microsoft@b4b5a79 It is temporarily reverting this commit. for the GPU case only, due to loss of functionality microsoft@9d45b9a
1 parent 99f2b80 commit ef832b9

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

onnxruntime/core/providers/qnn/builder/qnn_backend_manager.cc

+10-2
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,16 @@ Status QnnBackendManager::InitializeQnnLog(const logging::Logger& logger) {
369369
QnnLog_Level_t QnnBackendManager::MapOrtSeverityToQNNLogLevel(logging::Severity ort_log_level) {
370370
// Map ORT log severity to Qnn log level
371371
switch (ort_log_level) {
372-
case logging::Severity::kVERBOSE:
373-
return QNN_LOG_LEVEL_VERBOSE;
372+
case logging::Severity::kVERBOSE: {
373+
switch ((GetQnnBackendType())) {
374+
case QnnBackendType::GPU:
375+
// Currently GPU needs this log level to work.
376+
// This switch will be removed once this is resolved.
377+
return QNN_LOG_LEVEL_DEBUG;
378+
default:
379+
return QNN_LOG_LEVEL_VERBOSE;
380+
}
381+
}
374382
case logging::Severity::kINFO:
375383
return QNN_LOG_LEVEL_INFO;
376384
case logging::Severity::kWARNING:

0 commit comments

Comments
 (0)