Skip to content

[hipDNN] remove spdlog & fmt logging option from plugin_sdk#4507

Merged
BrianHarrisonAMD merged 4 commits into
developfrom
users/bharriso/remove-spdlog-from-plugin-sdk
Feb 13, 2026
Merged

[hipDNN] remove spdlog & fmt logging option from plugin_sdk#4507
BrianHarrisonAMD merged 4 commits into
developfrom
users/bharriso/remove-spdlog-from-plugin-sdk

Conversation

@BrianHarrisonAMD
Copy link
Copy Markdown
Contributor

Motivation

With the removal of spdlog & fmt from the data_sdk (#4312) we moved this capability to the plugin SDK to minimize changes.
#4442 & #4440 swapped existing providers to stream style logging, and the Fusilli plugin has decided to do the same.
Now that no provider will depend on spdlog / fmt from plugin_sdk we are removing this option.
Plugin authors can decide on their preferred logging style / macros, but the provided ones from the hipDNN SDK will be unified.

Technical Details

  • Remove existing spdlog / fmt options from plugin_sdk.

Test Plan

Build and tests pass.

Test Result

Build and tests passing locally (waiting on CI).


Note this is branched off the logging cleanup branch!

@BrianHarrisonAMD BrianHarrisonAMD self-assigned this Feb 11, 2026
@BrianHarrisonAMD BrianHarrisonAMD requested a review from a team as a code owner February 11, 2026 15:31
Base automatically changed from users/bharriso/logging-changes-cleanup to develop February 11, 2026 15:39
Remove the dual-mode logging system from plugin_sdk, keeping only
stream-style logging. This eliminates the spdlog/fmt dependencies
from the plugin SDK, allowing plugins to be built without these
external dependencies.

Changes:
- PluginLogging.hpp: Remove #ifdef HIPDNN_PLUGIN_USE_SPDLOG block,
  keep only stream-style macros
- PluginHelpers.hpp: Remove conditional LOG_API_* macros, keep only
  stream-style versions
- Delete CallbackSink.hpp: No longer needed without spdlog support
- Simplify hipdnn_plugin_sdkConfig.cmake.in: Remove hipdnn_enable_spdlog()
  function and hipdnn_add_dependency_includes() helper
- Spdlog.cmake: Remove HIPDNN_PLUGIN_USE_SPDLOG compile definition
  (only used by plugin SDK, not backend)

The backend continues to use spdlog internally via cmake/Spdlog.cmake.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Comment thread projects/hipdnn/backend/src/logging/Logging.hpp
Comment thread projects/hipdnn/plugin_sdk/cmake/hipdnn_plugin_sdkConfig.cmake.in
Comment thread dnn-providers/hipblaslt-provider/tests/main.cpp
Comment thread projects/hipdnn/backend/src/logging/Logging.cpp
@BrianHarrisonAMD BrianHarrisonAMD force-pushed the users/bharriso/remove-spdlog-from-plugin-sdk branch from 3d76113 to faaf2b0 Compare February 11, 2026 15:59
@ROCm ROCm deleted a comment from hipdnn-reviews Feb 11, 2026
@hipdnn-reviews
Copy link
Copy Markdown

PR Review Summary

Overview

This PR completes the logging infrastructure cleanup initiated by PRs #4440 and #4442, which migrated all providers to stream-style logging. The changes are well-scoped, focused, and successfully remove all spdlog/fmt dependencies from the plugin SDK without introducing regressions.

Changes Reviewed

Build System:

  • projects/hipdnn/cmake/Spdlog.cmake - Removed HIPDNN_PLUGIN_USE_SPDLOG compile definition

Configuration:

  • projects/hipdnn/plugin_sdk/cmake/hipdnn_plugin_sdkConfig.cmake.in - Removed 106 lines of spdlog helper functions (hipdnn_enable_spdlog(), hipdnn_add_dependency_includes())

Headers:

  • projects/hipdnn/plugin_sdk/include/hipdnn_plugin_sdk/PluginHelpers.hpp - Simplified to support stream-style logging only
  • projects/hipdnn/plugin_sdk/include/hipdnn_plugin_sdk/PluginLogging.hpp - Removed spdlog code paths (91 lines deleted)
  • projects/hipdnn/plugin_sdk/include/hipdnn_plugin_sdk/logging/CallbackSink.hpp - Deleted entire file (114 lines)

Impact: Total reduction of approximately 311 lines of legacy logging infrastructure.

Verification

Recommendation

APPROVE - This is a clean, low-risk refactoring that successfully removes technical debt and simplifies the plugin SDK logging infrastructure.


Generated by Claude Code

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Feb 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

❌ Your project status has failed because the head coverage (76.83%) is below the target coverage (80.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #4507   +/-   ##
========================================
  Coverage    65.49%   65.49%           
========================================
  Files         1608     1608           
  Lines       256545   256545           
  Branches     36093    36093           
========================================
  Hits        168006   168006           
  Misses       73350    73350           
  Partials     15189    15189           
Flag Coverage Δ *Carryforward flag
hipBLAS 90.67% <ø> (ø) Carriedforward from 8f32542
hipBLASLt 43.65% <ø> (ø) Carriedforward from 8f32542
hipDNN 81.94% <ø> (ø)
hipFFT 55.39% <ø> (ø) Carriedforward from 8f32542
hipRAND 76.12% <ø> (ø) Carriedforward from 8f32542
hipSOLVER 68.81% <ø> (ø) Carriedforward from 8f32542
hipSPARSE 84.70% <ø> (ø) Carriedforward from 8f32542
rocBLAS 47.97% <ø> (ø) Carriedforward from 8f32542
rocFFT 47.78% <ø> (ø) Carriedforward from 8f32542
rocSOLVER 76.83% <ø> (ø) Carriedforward from 8f32542
rocSPARSE 71.53% <ø> (ø) Carriedforward from 8f32542

*This pull request uses carry forward flags. Click here to find out more.

Files with missing lines Coverage Δ
...ata_sdk/include/hipdnn_data_sdk/logging/Logger.hpp 86.76% <ø> (ø)
...in_sdk/include/hipdnn_plugin_sdk/PluginHelpers.hpp 100.00% <ø> (ø)
...in_sdk/include/hipdnn_plugin_sdk/PluginLogging.hpp 0.00% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@BrianHarrisonAMD BrianHarrisonAMD enabled auto-merge (squash) February 11, 2026 18:31
@BrianHarrisonAMD
Copy link
Copy Markdown
Contributor Author

Enabling auto-merge

@BrianHarrisonAMD BrianHarrisonAMD enabled auto-merge (squash) February 11, 2026 21:21
@BrianHarrisonAMD
Copy link
Copy Markdown
Contributor Author

Auto-merge on for real

@BrianHarrisonAMD BrianHarrisonAMD merged commit 7a03213 into develop Feb 13, 2026
21 checks passed
@BrianHarrisonAMD BrianHarrisonAMD deleted the users/bharriso/remove-spdlog-from-plugin-sdk branch February 13, 2026 17:38
AaronStGeorge added a commit to AaronStGeorge/fusilli that referenced this pull request Feb 16, 2026
Upstream changes in ROCm/rocm-libraries#4507 require a few header updates.
sjain-stanford pushed a commit to iree-org/fusilli that referenced this pull request Feb 16, 2026
Upstream changes in ROCm/rocm-libraries#4507
require a few header updates.
SamuelReeder pushed a commit that referenced this pull request Feb 17, 2026
## Motivation

With the removal of spdlog & fmt from the data_sdk (#4312) we moved this
capability to the plugin SDK to minimize changes.
#4442 & #4440 swapped existing providers to stream style logging, and
the Fusilli plugin has decided to do the same.
Now that no provider will depend on spdlog / fmt from plugin_sdk we are
removing this option.
Plugin authors can decide on their preferred logging style / macros, but
the provided ones from the hipDNN SDK will be unified.

## Technical Details

- Remove existing spdlog / fmt options from plugin_sdk.

## Test Plan

Build and tests pass.

## Test Result

Build and tests passing locally (waiting on CI).

---

### Note this is branched off the logging cleanup branch!

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
kamuruga08 pushed a commit that referenced this pull request Feb 19, 2026
## Motivation

With the removal of spdlog & fmt from the data_sdk (#4312) we moved this
capability to the plugin SDK to minimize changes.
#4442 & #4440 swapped existing providers to stream style logging, and
the Fusilli plugin has decided to do the same.
Now that no provider will depend on spdlog / fmt from plugin_sdk we are
removing this option.
Plugin authors can decide on their preferred logging style / macros, but
the provided ones from the hipDNN SDK will be unified.

## Technical Details

- Remove existing spdlog / fmt options from plugin_sdk.

## Test Plan

Build and tests pass.

## Test Result

Build and tests passing locally (waiting on CI).

---

### Note this is branched off the logging cleanup branch!

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
kamuruga08 pushed a commit that referenced this pull request Feb 19, 2026
## Motivation

With the removal of spdlog & fmt from the data_sdk (#4312) we moved this
capability to the plugin SDK to minimize changes.
#4442 & #4440 swapped existing providers to stream style logging, and
the Fusilli plugin has decided to do the same.
Now that no provider will depend on spdlog / fmt from plugin_sdk we are
removing this option.
Plugin authors can decide on their preferred logging style / macros, but
the provided ones from the hipDNN SDK will be unified.

## Technical Details

- Remove existing spdlog / fmt options from plugin_sdk.

## Test Plan

Build and tests pass.

## Test Result

Build and tests passing locally (waiting on CI).

---

### Note this is branched off the logging cleanup branch!

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants