Skip to content

[FEA]: Memory resources supporting alignments greater than 256-bytes #8157

Open

Description

@wence-

Is this a duplicate?

Area

libcu++

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.

Describe alternatives you've considered

Just use the RMM version.

Additional context

No response

Activity

  1. bdice commented on Mar 24, 2026

    @bdice
    Contributor

    Yes, this would be good for us to discuss and solve. Tagging @pciolkosz @miscco for input.

    Relatedly: provide a statically queryable property on memory resources that advertises what alignment guarantees they provide of returned pointers.

    Something like a minimum_allocation_alignment member constant? This might help with the default alignment issues described in #8063.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status
      Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions