A GopherCon 2025 talk covering how to integrate CUDA GPU programming with Go using CGO. The speaker walks through GPU architecture fundamentals, CUDA's thread/block/grid model, memory hierarchy (registers, shared, global), and practical code examples including array increment and matrix multiplication kernels. The integration pattern uses CGO annotations to link compiled CUDA (.cu) shared libraries into Go programs, with careful attention to memory safety across the Go garbage collector and C manual memory management boundary. Performance profiling with NVIDIA Nsight Systems and Nsight Compute is also covered, including how to identify memory transfer bottlenecks and compute-bound kernels.
•29m watch time
2 Impressions