NVIDIA / cuda-python

CUDA Python Low-level Bindings
https://nvidia.github.io/cuda-python/
Other
809 stars 63 forks source link

Missing cudaLaunchKernel #47

Closed kumattau closed 1 year ago

kumattau commented 1 year ago

It seems to be missing cudaLaunchKernel.

>>> from cuda import cudart
>>> print(cudart.cudaLaunchKernel)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'cuda.cudart' has no attribute 'cudaLaunchKernel'
vzhurba01 commented 1 year ago

This is an expected limitation for CUDA Python today. Kernels can instead be launched using the Driver APIs such as: https://github.com/NVIDIA/cuda-python/blob/6782a648bc728cdf55e280eb20631748b8c15627/examples/0_Introduction/simpleCubemapTexture_test.py#L160

https://nvidia.github.io/cuda-python/release/12.1.0-notes.html#cuda-functions-not-supported-in-this-release

kumattau commented 1 year ago

Thank you. I will try cuLaunchKernel.