CUDA Python Tutorial with Examples.
CUDA Python tutorial: GPU programming from Python using CuPy, Numba CUDA and PyCUDA for accelerated numerical and ML workloads.
Beginner
Start here — no prior experience needed
Intermediate
For developers with core concepts down
CUDA Python: Memory Transfers and Benchmarking
Benchmark GPU code from Python correctly: synchronise, warm up, use CUDA events, and measure host-device transfers and pinned memory on a real T4.
CUDA Python: Shared Memory and Atomics with Numba
Use shared memory and atomics in Numba CUDA kernels: a syncthreads race, a block reduction, histograms and compare-and-swap, measured on a real T4.
Advanced
Production-grade patterns for experienced engineers
Also part of CUDA Python
Taught in other topics. Each link opens the lesson in its home topic.
GPU Fundamentals: SIMT & Memory Hierarchy
Learn SIMT execution, warps, branch divergence and the GPU memory hierarchy (registers, shared, L2, DRAM) from CUDA programs run on a real T4.
GPU Fundamentals: Coalescing & Occupancy
Measure how coalesced memory access and occupancy change GPU bandwidth, with CUDA programs timed on a real Tesla T4: strides, layouts and block sizes.