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

Use new rapids-logger library #2566

Open
wants to merge 11 commits into
base: branch-25.04
Choose a base branch
from

Conversation

vyasr
Copy link
Contributor

@vyasr vyasr commented Feb 3, 2025

Contributes to rapidsai/build-planning#104.

@vyasr vyasr added improvement Improvement / enhancement to an existing function breaking Breaking change labels Feb 3, 2025
@vyasr vyasr self-assigned this Feb 3, 2025
Copy link

copy-pr-bot bot commented Feb 3, 2025

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@vyasr vyasr force-pushed the feat/rapids_logger_library branch from d4a9a82 to cc29810 Compare February 3, 2025 21:10
@vyasr
Copy link
Contributor Author

vyasr commented Feb 3, 2025

/ok to test

@vyasr
Copy link
Contributor Author

vyasr commented Feb 3, 2025

/ok to test

@vyasr
Copy link
Contributor Author

vyasr commented Feb 3, 2025

/ok to test

@vyasr
Copy link
Contributor Author

vyasr commented Feb 3, 2025

/ok to test

@vyasr
Copy link
Contributor Author

vyasr commented Feb 3, 2025

/ok to test

@vyasr
Copy link
Contributor Author

vyasr commented Feb 3, 2025

/ok to test

@vyasr vyasr marked this pull request as ready for review February 4, 2025 22:10
@vyasr vyasr requested review from a team as code owners February 4, 2025 22:10
@vyasr vyasr requested a review from a team as a code owner February 4, 2025 22:10
@vyasr vyasr requested a review from raydouglass February 4, 2025 22:10
{
auto* filename = std::getenv("RAFT_DEBUG_LOG_FILE");
return (filename == nullptr)
? static_cast<rapids_logger::sink_ptr>(std::make_shared<rapids_logger::stderr_sink_mt>())
Copy link
Contributor

Choose a reason for hiding this comment

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

Same question as on cudf about static_cast.

@jameslamb jameslamb requested review from jameslamb and removed request for raydouglass February 10, 2025 23:03
Copy link
Member

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

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

Approving so I don't block merging, since we're now in the state where we need to start merging this sequence of PRs, assuming all the testing-specific stuff will be dropped before merging.

Please see my comment about declaring the dependency on rapids-logger... I think that is missing here.

@@ -29,6 +29,7 @@ EXCLUDE_ARGS=(
--exclude "libcusparse.so.*"
--exclude "libnvJitLink.so.*"
--exclude "libucp.so.*"
--exclude "librapids_logger.so"
Copy link
Member

Choose a reason for hiding this comment

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

This list was in alphabetical order. Could we preserve that, by moving this up above libucp.so.*? I think that's helpful for scanning this at a glance.

Comment on lines +49 to +52
import librmm # noqa: F401
import rapids_logger

rapids_logger.load_library()
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
import librmm # noqa: F401
import rapids_logger
rapids_logger.load_library()
import librmm
import rapids_logger
librmm.load_library()
rapids_logger.load_library()

similar to rapidsai/cudf#17899 (comment)

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we want rapids_logger first, right? In this case it may not matter because librmm is header-only, but that may change -- and we otherwise need to load these libraries in dependency order, iirc.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah you're right, the order here should be flipped (rapids-logger before librmm).

@@ -31,6 +31,7 @@ authors = [
license = { text = "Apache 2.0" }
requires-python = ">=3.10"
dependencies = [
"librmm==25.4.*,>=0.0.0a0",
Copy link
Member

Choose a reason for hiding this comment

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

I'd expected to see direct runtime and build-time dependencies on rapids-logger in libraft wheels and the conda recipe, as was done for libcudf in rapidsai/cudf#17899, because RAFT is exposing its own logger.

Don't we need that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, we do. That is a good call, I'll add those.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Breaking change ci CMake cpp improvement Improvement / enhancement to an existing function python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants