-
Notifications
You must be signed in to change notification settings - Fork 200
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
Update RMM adaptors, containers and tests to use get/set_current_device_resource_ref() #1661
Merged
rapids-bot
merged 27 commits into
rapidsai:branch-24.10
from
harrism:fea-resource_ref-upstream
Sep 9, 2024
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
a9555c5
Add _ref versions of get/set_current_device_resource and friends.
harrism d893698
doc: explain that set_current_device_resource is in transition
harrism b068ded
Update/add tests for get/set_current_device_resource_ref
harrism c7d443d
Apply suggestions from code review
harrism 3cd6917
RMM_EXPORT ref_map_lock()
harrism adbf7f6
Apply suggestions from code review
harrism db53c65
Merge branch 'fea-get_current_device_resource_ref' of github.com:harr…
harrism b5a831a
Explicit RMM_EXPORT on all functions that return a function-local sta…
harrism 812d08d
Doc: ref and ptr versions are not interchangeable.
harrism 1c43d63
Use resource_ref in MR adaptors and related tests.
harrism bd70c42
Use resource_ref in torch_allocator and polymorphic_allocator
harrism 00bd3ac
Make the raw pointer version of set_per_device_resource update the re…
harrism d7df60e
Update containers and tests to use get/set_current_device_resource_ref()
harrism 81ba5a0
Merge branch 'branch-24.10' into fea-resource_ref-upstream
harrism 8d2bc62
Remove an utterance of device_memory_resource* in test.
harrism 3d2ef08
Remove another unnecessary device_memory_resource*
harrism 13172c5
Copyrights
harrism efee997
Merge branch 'branch-24.10' into fea-resource_ref-upstream
harrism 4884f53
Add `to_device_async_resource_ref_checked()` to simplify adaptor cons…
harrism 1bcb81a
Use to_device_async_resource_ref_checked() and more adaptor tidy / co…
harrism 56e5eaa
Make test debug builds use -O0
harrism 545323b
Fix quoted include.
harrism 5598840
cmake style
harrism c1d7b0d
Don't take the address when passing MR to resource_ref.
harrism 4c11382
Fix yoda code.
harrism 6d2f09d
Use resource_ref upstreams in binning_mr
harrism a367af6
Remove incorrect @throws documentation
harrism File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure how to handle this migration without making a breaking change, but this class no longer needs to be a templated class, but rather this constructor should be templated.
And hence, question: does the constructor even need to exist, if there is transparent conversion from
Upstream *
todevice_async_resource_ref
?That is, what doesn't work if the only constructor is:
Applies mutatis mutandis to the other adaptor MR changes as well, I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, the plan is to remove the template parameter and the
Upstream*
constructors, once we add theresource_ref
constructors and convert all of RAPIDS to use them. But we can't do it yet.See #1457