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.
xref:
cuda-python/cuda_core/cuda/core/_kernel_arg_handler.pyx
Line 356 in 060578a
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.