Skip to content

Commit 7f73b2a

Browse files
adrianlizarragaguschmue
authored andcommitted
[QNN EP] Add LoggingManager::HasDefaultLogger() to provider bridge API (#23467)
### Description Fixes QNN EP builds due to missing function in provider bridge API: `logging::LoggingManager::HasDefaultLogger()` ### Motivation and Context A [recent PR](#23120) made QNN EP a shared library. A [different PR](#23435) added use of a new function to QNN EP that was not part of the provider bridge API. The CI did not catch it because main was not merged into the first PR before merging.
1 parent a593a94 commit 7f73b2a

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

onnxruntime/core/providers/shared_library/provider_interfaces.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ struct ProviderHost {
286286

287287
// logging::LoggingManager
288288
virtual const logging::Logger& logging__LoggingManager__DefaultLogger() = 0;
289+
virtual bool logging__LoggingManager__HasDefaultLogger() = 0;
289290

290291
// logging::Capture
291292
virtual std::unique_ptr<logging::Capture> logging__Capture__construct(const logging::Logger& logger,

onnxruntime/core/providers/shared_library/provider_wrappedtypes.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ struct Logger final {
3232

3333
struct LoggingManager final {
3434
static const Logger& DefaultLogger() { return g_host->logging__LoggingManager__DefaultLogger(); }
35+
static bool HasDefaultLogger() { return g_host->logging__LoggingManager__HasDefaultLogger(); }
3536

3637
PROVIDER_DISALLOW_ALL(LoggingManager)
3738
};

onnxruntime/core/session/provider_bridge_ort.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ struct ProviderHostImpl : ProviderHost {
397397

398398
// logging::LoggingManager (wrapped)
399399
const logging::Logger& logging__LoggingManager__DefaultLogger() override { return logging::LoggingManager::DefaultLogger(); }
400+
bool logging__LoggingManager__HasDefaultLogger() override { return logging::LoggingManager::HasDefaultLogger(); }
400401

401402
// logging::Capture (wrapped)
402403
std::unique_ptr<logging::Capture> logging__Capture__construct(const logging::Logger& logger,

0 commit comments

Comments
 (0)