Write your own CUDA kernels in Python with Numba and run them on a real 4.5-megapixel photo: RGB-to-grayscale with one thread per pixel, a 9x9 box blur (first straight from global memory, then tiled through shared memory with a halo), and a Sobel edge detector. Every kernel is checked against NumPy/SciPy, then benchmarked properly (warm-up, synchronize) to see where the GPU wins. The photo (~5 MB) is downloaded from the Hugging Face Hub on first run.
Loading the Photo
Exploring the Image
Writing the Kernels
Benchmarking and Results
Premium Project
This guided, GPU-powered project is available to Premium members. Upgrade to train models end-to-end in an interactive notebook.