# CUDA Python Kernels

> Writes and launches custom GPU kernels from Python with NVIDIA's cuda.core, and ports old PyCUDA code.

- Page: https://youraiskill.com/skill/nvidia-cuda-python
- What it does: Use for any task or question involving CUDA Python Core libraries: cuda-core, cuda-bindings and cuda-pathfinder. Use when asked to write, port, review, debug Python code that compiles and launches its own CUDA kernels (Program, launch, LaunchConfig, Device, Stream, Buffer, Linker, CUDA graphs). When porting PyCUDA or old CUDA bindings APIs to cuda.core and cuda.bindings. When interacting with passing CuPy, PyTorch or Numba arrays and streams to a custom kernel. When locating CUDA headers or libraries from Python, and for install questions about cuda-python, cuda-core or conda. Use before hand-rolling cuda.bindings driver / nvrtc / nvml calls for something cuda.core provides. Not for plain CuPy, Numba or PyTorch array code, or for cuda.compute (CCCL).
- Niches: coding, data
- Licence: Apache-2.0
- Status: Checked: open licence, author credited, passed the YourAISkill safety scan. Can be added to a paid pack.
- Contents: instructions plus scripts (14 files)

To add it, see https://youraiskill.com/guides/how-to-add-a-skill-to-claude
