Repository navigation
Support building with CCCL 3.1.0 - #2017
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
CCCL's memory resources have breaking changes in CCCL 3.1.0. The changes in the memory resource concept mean that RMM's memory resources no longer meet the concept's requirements. Here are the breaking changes (NVIDIA/cccl#5313): List of breaking changes
|
|
I wrote a plan with next steps for adoption here: #2011 (comment) |
|
/ok to test 7aecdf6 |
There was a problem hiding this comment.
Revert changes in this file before merging.
There was a problem hiding this comment.
Delete this file before merging.
| }; | ||
|
|
||
| #if CCCL_MAJOR_VERSION > 3 || (CCCL_MAJOR_VERSION == 3 && CCCL_MINOR_VERSION >= 1) | ||
| #define RMM_CCCL_MR_METHODS \ |
There was a problem hiding this comment.
@lamarrr Can you write a bit about why we're doing this with macros rather than directly implementing the methods (copy-paste)? This macro'd code would benefit from having docstrings. It looks like this is only used in host MRs and "mock" MRs. Do we need to restructure the way that host MRs look in order to better leverage the CCCL MR infrastructure?
There was a problem hiding this comment.
It's not RMM-specific code since our allocator methods will be different from CCCL's (from 3.1.0 upwards).
It's specific to CCCL and it is used to adapt to CCCL's changing allocator method signatures across versions.
We could also implement them manually, but it would be difficult to manage and track compared to a single source of truth.
There was a problem hiding this comment.
I've duplicated the code as necessary, are you okay with the changeset now? @ttnghia
|
Really nice progress on this @lamarrr, thanks for your help. For next steps:
|
|
/ok to test 68389a1 |
| #include <rmm/aligned.hpp> | ||
| #include <rmm/detail/aligned.hpp> | ||
| #include <rmm/detail/cccl_adapters.hpp> | ||
| #include <rmm/detail/cccl_adaptors.hpp> |
There was a problem hiding this comment.
Sorry @bdice: what is the difference between adapter vs adaptor?
There was a problem hiding this comment.
This is a British / American spelling difference. We actually use the British form in RMM, and never the American form. I am changing this just for consistency with RMM's existing precedent. (I prefer the American form but don't want to change all of RMM.)
|
/merge |
vyasr
left a comment
There was a problem hiding this comment.
Looks fine to me as a first, hopefully non-breaking step. Thanks!
…2150) This removes the deprecated legacy memory resource interface. Part of #2011. See previous work: - #2017 - #2112 - #2126 - #2128 Authors: - Bradley Dice (https://github.com/bdice) Approvers: - Vyas Ramasubramani (https://github.com/vyasr) - Lawrence Mitchell (https://github.com/wence-) URL: #2150
Description
This PR allows building with CCCL 3.1.0. Contributes to #2011.
Checklist