Skip to content

Add cuda.core.utils.get_aligned_dtype #734

Open

Description

@leofang

Many CUDA Python projects require the ability to declare a custom alignment for a give dtype. While NumPy builtin/structure dtypes work in most cases, this is one of the few issues that it cannot fulfill today. @seberg has figured out a prototype to address this issue (numpy/numpy#28318 (comment)), and the plan is for cuda.core to provide this infrastructure, let other teams start using it, gather feedbacks, and eventually upstream this back to NumPy.

Activity

  1. added this to the cuda.core parking lot milestone on Jun 27, 2025
  2. self-assigned this
    on Jun 27, 2025
  3. added
    P0High priority - Must do!
    featureNew feature or request
    cuda.coreEverything related to the cuda.core module
    on Jun 27, 2025
  4. leofang commented on Jun 27, 2025

    @leofang
    MemberAuthor
  5. leofang commented on Aug 20, 2025

    @leofang
    MemberAuthor

    @ZzEeKkAa does Sebastian's prototype work for you out of box, or does it require additional tweaks?

  6. ZzEeKkAa commented on Sep 9, 2025

    @ZzEeKkAa
    Contributor

    Sebastian's prototype works out of the box as an intermediate solution for nvmath. However complex* types as well as half precision packed complex type are required

  7. added
    P1Medium priority - Should do
    on Sep 11, 2025
  8. 3 remaining items

  9. moved this from Todo to In Progress in CCCLon Feb 18, 2026
  10. removed this from the cuda.core v1.0.0 milestone on Apr 15, 2026
  11. added this to the cuda.core v1.1.0 milestone on May 21, 2026
  12. seberg commented on May 29, 2026

    @seberg
    Contributor

    We now have cupy.make_aligned_dtype to help with structured dtypes.

    (This may not solve all issues around this e.g. for the numba side of things, but should help.)

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

Metadata

Metadata

Assignees

Labels

P1Medium priority - Should docuda.coreEverything related to the cuda.core modulefeatureNew feature or request

Projects

  • Status
    In Progress

Relationships

None yet

Development

No branches or pull requests

Issue actions