-
Notifications
You must be signed in to change notification settings - Fork 226
Fix bug in pinned_memory_resource with CCCL 3.1.x. #2058
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
Fix bug in pinned_memory_resource with CCCL 3.1.x. #2058
Conversation
I am recommending this for a merge during code freeze because this bug affects downstream builds with CCCL 3.1.0, which we would like to support at build time in RAPIDS 25.10. We won't be upgrading RAPIDS to CCCL 3.1.0 until the 25.12 release, but having build-time support for CCCL 3.1.0 will be useful for future builds based on this release. The risk of breaking things is very low because the change is only active when CCCL 3.1.0 or higher is available. |
// Explicitly inherit the allocate and deallocate functions from the host_memory_resource class. | ||
// Due to inheritance and name hiding rules, we need to declare these with "using" when we | ||
// override allocate and deallocate for CCCL 3.1.0+ compatibility. | ||
using host_memory_resource::allocate; | ||
using host_memory_resource::deallocate; | ||
|
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.
Reviewers: these lines are the fix. If you prefer to limit the diff, I can punt on adding the tests until branch-25.12
. Let me know if you'd prefer that.
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.
Approving C++
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.
Approved trivial CMake changes
Description
Closes #2057.
This fix only affects builds with CCCL 3.1.0+.
Checklist