Add `cuda.core.utils.get_aligned_dtype`
Open
@leofang is already working on this.
Since Jun 27, 2025.
cuda.core
feature
P1
- Dominant language
- Cython
- Stars
- 3.4k
- Forks
- 329
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 116
Description
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 (https://github.com/numpy/numpy/issues/28318#issuecomment-2678883667), 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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.