Skip to content
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

Remove all explicit usage of fmtlib #1724

Merged
merged 23 commits into from
Nov 14, 2024

Conversation

harrism
Copy link
Member

@harrism harrism commented Nov 7, 2024

Description

Fixes #1717
Also fixes #1710 in 5330063

I have replaced fmt-style format string placeholders ("... {} ...") with printf-style placeholders by adding a function rmm::detail::formatted_log(), which I modified from @vyasr 's #1722.

The only remaining mention of fmt is in CMakeLists.txt. Do we still need to explicitly fetch fmt?
Removed.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@harrism harrism requested a review from a team as a code owner November 7, 2024 05:51
@harrism harrism requested review from wence- and bdice November 7, 2024 05:51
@github-actions github-actions bot added the cpp Pertains to C++ code label Nov 7, 2024
@harrism harrism added non-breaking Non-breaking change improvement Improvement / enhancement to an existing function labels Nov 7, 2024
@harrism harrism requested a review from vyasr November 7, 2024 05:52
Copy link
Contributor

@wence- wence- left a comment

Choose a reason for hiding this comment

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

One definite issue in the snprintf calls, the rest is all minor nits, I think

include/rmm/detail/format.hpp Outdated Show resolved Hide resolved
include/rmm/mr/device/tracking_resource_adaptor.hpp Outdated Show resolved Hide resolved
include/rmm/mr/device/tracking_resource_adaptor.hpp Outdated Show resolved Hide resolved
include/rmm/detail/format.hpp Show resolved Hide resolved
@harrism harrism requested a review from a team as a code owner November 13, 2024 01:04
@github-actions github-actions bot added the CMake label Nov 13, 2024
@harrism harrism requested a review from a team as a code owner November 13, 2024 04:24
@github-actions github-actions bot added the Python Related to RMM Python API label Nov 13, 2024
Copy link
Contributor

@wence- wence- left a comment

Choose a reason for hiding this comment

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

Thanks Mark

python/rmm/docs/conf.py Outdated Show resolved Hide resolved
@vyasr
Copy link
Contributor

vyasr commented Nov 13, 2024

It looks like you found a number of the issues with my snprintf implementation that I have since fixed 😂 Hopefully I caught everything, I'll review now and see.

Copy link
Contributor

@vyasr vyasr left a comment

Choose a reason for hiding this comment

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

Overall looks great. I have a few small suggestions, and I'm blocking merge per discussion of #1722 (comment), but can approve once we resolve either way.

CMakeLists.txt Show resolved Hide resolved
benchmarks/utilities/log_parser.hpp Show resolved Hide resolved
include/rmm/mr/device/arena_memory_resource.hpp Outdated Show resolved Hide resolved
include/rmm/detail/format.hpp Show resolved Hide resolved
tests/mr/device/arena_mr_tests.cpp Show resolved Hide resolved
@harrism
Copy link
Member Author

harrism commented Nov 13, 2024

I have a few small suggestions

@vyasr none of your comments read as suggestions, just comments on differences from your PR. Are there any specific changes you are requesting?

@vyasr
Copy link
Contributor

vyasr commented Nov 13, 2024

I resolved the indeterminate threads and left open the two that require nonzero resolution.

Copy link
Contributor

@vyasr vyasr left a comment

Choose a reason for hiding this comment

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

Thanks!

@harrism
Copy link
Member Author

harrism commented Nov 14, 2024

/merge

rapids-bot bot pushed a commit that referenced this pull request Nov 14, 2024
…replay benchmark (#1728)

Fixes #1727
Contributes to rapidsai/build-planning#26

 - Removes `-Wno-error=deprecated-declarations`
 - Replaces deprecated usage of `rmm::logger()` in reply benchmark with supported `RMM_LOG_INFO` macros.

Note the latter duplicates a change in #1724 which allows the two PRs to be merged independently.

Authors:
  - Mark Harris (https://github.com/harrism)

Approvers:
  - Rong Ou (https://github.com/rongou)
  - Bradley Dice (https://github.com/bdice)

URL: #1728
@rapids-bot rapids-bot bot merged commit 52d61c5 into rapidsai:branch-24.12 Nov 14, 2024
58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CMake cpp Pertains to C++ code improvement Improvement / enhancement to an existing function non-breaking Non-breaking change
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[FEA] Remove usage of fmt Prepare for CUDA Python new documentation layout
4 participants