NVIDIA / NVIDIA/cuda-python

Support passing structs as kernel `launch()` arguments

Open
#2,343 0 comments 0 reactions 1 assignee View on GitHub

@lijinf2 is already working on this.

Since Jul 11, 2026.

cuda.core enhancement P1
Dominant language
Cython
Stars
3.4k
Forks
329
Avg merge
1d 23h
Merged PRs (30d)
116

Description

xref:
https://github.com/NVIDIA/cuda-python/blob/060578ab92f676d760bf698a653584e31306d8cb/cuda_core/cuda/core/_kernel_arg_handler.pyx#L356
Try NumPy first, then ctypes.

Note: This is for passing single structs by value. For passing an array of structs by pointer (to gmem) it's a separate task.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.