-
Notifications
You must be signed in to change notification settings - Fork 207
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
[BUG] No way to set RMM_LOGGING_LEVEL when building Python module #1336
Comments
Copying my message from Slack:
|
I don't see why this isn't doable. The RMM C++ cmakelists only creates a property with defined values, and a default. It never sets any compile definitions based on it. I found that this is working for Cython, but realized that SPDLOG requires both a compile-time definition and a run-time call to set the level on the logger object. So I created a PR to expose this via the RMM Python API. |
We discussed this offline, Mark is correct. I had assumed in conversation that the C++ CMakeLists.txt was actually setting compile definitions, which is not the case. |
Enables RMM debug logging in Python and exposes controls for the level of logging. Fixes #1336. Authors: - Mark Harris (https://github.com/harrism) - Lawrence Mitchell (https://github.com/wence-) Approvers: - Lawrence Mitchell (https://github.com/wence-) - Vyas Ramasubramani (https://github.com/vyasr) URL: #1339
Describe the bug
When building the RMM Python module, passing
-DRMM_LOGGING_LEVEL=TRACE
or-DSPDLOG_ACTIVE_LEVEL=SPDLOG_ACTIVE_LEVEL_TRACE
to the cmake configuration does not change the SPDLOG_ACTIVE_LEVEL that is active when RMM C++ code is compiled, and so it is always atSPDLOG_ACTIVE_LEVEL_INFO
.Steps/Code to reproduce bug
In the RMM dev container, run
build-rmm-python -DRMM_LOGGING_LEVEL=TRACE -DSPDLOG_ACTIVE_LEVEL=SPDLOG_ACTIVE_LEVEL_TRACE
.This has no effect on logging.
Expected behavior
All
RMM_LOG_TRACE
message should be printed to a filermm_log.txt
in the current directory when this is run.Environment details (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: