You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#647 made a breaking change that affects downstream packages such as XGBoost (dmlc/xgboost#6510). Currently, there is no way to reliably obtain the version string in Python or C++. As RMM is used in more downstream packages, the ability to detect version and account for breaking changes will be critically important.
Proposal:
Add a C++ macro to obtain the major / minor version of RMM. For example:
Thanks @hcho3 ! This is a good suggestion. We should also consider the approach and naming desireable across other RAPIDS libraries so we can be consistent. CC @kkraus14@JohnZed@BradReesWork@mike-wendt
Closes#663
Depends on #665
* Expose C++ macros `RMM_VER_MAJOR` and `RMM_VER_MINOR` to encode the major and minor versions of RMM. This is useful for downstream packages that links with RMM in the C++ layer.
* Expose the version string via `rmm.__version__`, to follow a widely-recognized convention for accessing version of Python modules.
Authors:
- Philip Hyunsu Cho (@hcho3)
Approvers:
- Ashwin Srinath (@shwina)
- @jakirkham
- Keith Kraus (@kkraus14)
- Mark Harris (@harrism)
URL: #666
#647 made a breaking change that affects downstream packages such as XGBoost (dmlc/xgboost#6510). Currently, there is no way to reliably obtain the version string in Python or C++. As RMM is used in more downstream packages, the ability to detect version and account for breaking changes will be critically important.
Proposal:
The version macros can be configured as part of the CMake build. See this example from XGBoost.
__version__
in the Python package. For example:The text was updated successfully, but these errors were encountered: