Build a complete image processing pipeline: grayscale conversion → Gaussian blur → Sobel edge detection. Each stage is a separate CUDA kernel; chain them with CUDA streams and benchmark every step.
// PREREQUISITES
// TUTORIAL
GPU executiongray = 0.299f * R + 0.587f * G + 0.114f * BrgbToGray. Each thread computes its 2D pixel index from blockIdx and threadIdx, applies the formula, and writes to gray[].// expected output
Grayscale: 0.12 ms Pixel[0] expected=87.81 got=87.81 OK
// YOUR PROGRESS
Log in to save progress
// DETAILS
// MORE IN MEMORY
// LEARN THE THEORY
Memory concepts