Add functions for resource binding verification to librrun#972
Merged
rapids-bot[bot] merged 21 commits intorapidsai:mainfrom Apr 17, 2026
Merged
Conversation
…ng-checking-to-librrun
madsbk
reviewed
Apr 17, 2026
pentschev
commented
Apr 17, 2026
Comment on lines
+90
to
+102
| /** | ||
| * @brief Obtain the expected binding for a GPU from pre-discovered topology. | ||
| * | ||
| * Looks up @p gpu_id in @p topology and returns the expected CPU affinity, | ||
| * memory binding, and network devices. | ||
| * | ||
| * @param topology Pre-discovered system topology. | ||
| * @param gpu_id GPU device index to look up. | ||
| * @return The expected binding, or `std::nullopt` if @p gpu_id is not found. | ||
| */ | ||
| std::optional<expected_binding> get_expected_binding( | ||
| cucascade::memory::system_topology_info const& topology, int gpu_id | ||
| ); |
Member
Author
There was a problem hiding this comment.
This is currently not exposed to Python because cuCascade has no Python bindings. If we find a proper use case for this we can review this decision and add bindings ourselves.
madsbk
reviewed
Apr 17, 2026
Member
Author
|
Thanks Mads! |
Member
Author
|
/merge |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RapidsMPF currently includes a CLI tool
check_resource_bindingfor live detection of hardware resource bindings. This functionality can also be useful as a library so that other projects can programmatically retrieve the information, thus move the implementation tolibrrunand adapt the tool to reuse that.Additionally, make optional use of that verification in
bind()functions, to strengthen resource binding confidence.