PidokuInfra
03The Programming Model

The Programming Model

IntermediateModule 035 topics~4h 50m

Topics, in order

About this module

You know what the hardware is. Now: how do you tell it what to do?

This module teaches the CUDA programming model — the one nearly every other GPU API copies — and shows how a Go program drives it.

#LessonThe question it answers
01Kernels, Threads, Blocks, GridsHow is work described to a GPU?
02Your First Kernel, Called from GoWhat does a complete GPU program look like?
03Host and Device MemoryWhere does data live, and how does it move?
04Asynchronous Execution and StreamsWhy does a GPU call return before the work is done?
05The Software StackWhat sits between go run and the silicon?

Lesson 02 needs an NVIDIA GPU and the CUDA toolkit to run; everything else runs anywhere. If you have no GPU, read 02 carefully and do its simulator exercise instead — the concepts carry.

↑↓ navigate↵ openesc close