Skip to content

Conversation

bdice
Copy link
Contributor

@bdice bdice commented Sep 27, 2025

Description

Closes #2057.

This fix only affects builds with CCCL 3.1.0+.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@bdice bdice requested review from a team as code owners September 27, 2025 02:04
@bdice bdice added bug Something isn't working non-breaking Non-breaking change labels Sep 27, 2025
@bdice
Copy link
Contributor Author

bdice commented Sep 27, 2025

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.

Comment on lines +155 to +160
// 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;

Copy link
Contributor Author

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.

@bdice bdice changed the title Fix bug in pinned_mr with CCCL 3.1.x. Fix bug in pinned_memory_resource with CCCL 3.1.x. Sep 27, 2025
Copy link
Contributor

@wence- wence- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving C++

Copy link
Member

@KyleFromNVIDIA KyleFromNVIDIA left a 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

@AyodeAwe AyodeAwe merged commit 5b46576 into rapidsai:branch-25.10 Sep 29, 2025
79 of 80 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working non-breaking Non-breaking change
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants