Skip to content

Commit ad6d34c

Browse files
authored
[QNN EP] ETW log level rule change (microsoft#27593)
### Description - ETW log level takes precedence over the QNN log level - This is now changed to only using ETW log level when it provides higher fidelity ### Motivation and Context - ETW log level takes precedence over the QNN log level - If ETW log level = Baisc ; Qnn log level = detailed, QNN EP still picks basic logging over detailed.
1 parent 00e9ef3 commit ad6d34c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -664,8 +664,9 @@ Status QnnBackendManager::ReleaseDevice() {
664664

665665
Status QnnBackendManager::InitializeProfiling() {
666666
profiling_level_merge_ = profiling_level_;
667-
// use profiling level from ETW if ETW is enabled
668-
if (profiling_level_etw_ != ProfilingLevel::INVALID) {
667+
// Only use ETW level if it provides higher fidelity
668+
if (profiling_level_etw_ != ProfilingLevel::INVALID &&
669+
profiling_level_etw_ > profiling_level_) {
669670
profiling_level_merge_ = profiling_level_etw_;
670671
}
671672

0 commit comments

Comments
 (0)