8000 [BUILD] Use fmt-header instead of libfmt by nileshnegi · Pull Request #1791 · ROCm/rccl · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[BUILD] Use fmt-header instead of libfmt #1791

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

nileshnegi
Copy link
8000 Collaborator

Details

Work item:
Internal

What were the changes?
Replaced libfmt.so dependency with fmt-header

Why were the changes made?
#1732 introduced a RCCL dependency on libfmt.so. This PR switches to using fmt-header.

Approval Checklist

Do not approve until these items are satisfied.

  • Verify the CHANGELOG has been updated, if
    • there are any NCCL API version changes,
    • any changes impact library users, and/or
    • any changes impact any other ROCm library.

@nileshnegi nileshnegi force-pushed the build/fix-fmt-use branch from 11491ed to 0b01f29 Compare July 7, 2025 06:43
@@ -10,6 +10,9 @@
#include <chrono>
#include <cstdint>
#include <deque>
#ifndef FMT_HEADER_ONLY
#define FMT_HEADER_ONLY 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this for? Can you add a comment if this is needed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FMT docs advise using this FMT_HEADER_ONLY macro to enable header-only mode. However, if we do not guard this, it throws a pre-definition warning. I thought we could keep this guard if some systems have an older FMT that does not pre-include this macro.

Copy link
Contributor
@gpinkert gpinkert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this. You mentioned build time differences about this change, did you find the difference neglible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0