CUDA CORE PROJECT · COMPUTER VISION
GPU-Accelerated Visual Pattern Matching
I trained a two-block convolutional network to recognize handwritten digits and implemented its inference in CUDA C++. The fused version combines convolution, ReLU, and max pooling, so the full convolution output stays out of global memory.
The demo lets you browse held-out digits, inspect mistakes, and compare recorded timings by batch size.
- CNN test accuracy · 347 of 360 digits
- 96.39%
- CUDA predictions matching PyTorch
- 360 / 360
- Lower GPU-resident latency with fusion · batch 128
- 13.7%
- ConvolutionFour lanes compute the four values in a 2 × 2 window using inputs staged in shared memory.
- ReLUEach lane clamps its result to zero or above.
- Max poolingWarp shuffles find the maximum. One lane writes the pooled value to global memory.

