You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEA]: Memory resources supporting alignments greater than 256-bytes #8157
Is your feature request related to a problem? Please describe.
Since #7623 we can construct buffer objects and specify an alignment parameter. Unfortunately, today, if the requested alignment is wider than 256 bytes we cannot make an allocation and instead CCCL raises an exception.
Wow, that's a wide alignment, you might say, whoever needs that?
If I want to do GPUDirect accelerated IO, my pointers have to be 4096-byte aligned
In rapids today we use RMM's aligned_allocator_adaptor to handle this case, but it perhaps this is general purpose enough that such an adaptor should live in CCCL.
Describe the solution you'd like
Ideally: support arbitrary alignment in allocate and friends.
But probably: provide an adaptor that can handle this.
Relatedly: provide a statically queryable property on memory resources that advertises what alignment guarantees they provide of returned pointers.
Activity
bdice commentedon Mar 24, 2026
Yes, this would be good for us to discuss and solve. Tagging @pciolkosz @miscco for input.
Something like a
minimum_allocation_alignmentmember constant? This might help with the default alignment issues described in #8063.