flâneur

Litherum: Implementing a GPU's Programming Model on a CPU

litherum.blogspot.com · 5,414 words · saved by 1 readers

SIMT The programming model of a GPU uses what has been coined "single instruction multiple thread." The idea is that the programmer writes t...

SIMT The programming model of a GPU uses what has been coined "single instruction multiple thread." The idea is that the programmer writes their program from the perspective of a single thread, using normal regular variables. So, for example, a programmer might write something like: int x = threadID; int y = 6; int z = x + y; Straightforward, right? Then, they ask the system to run this program a million times, in parallel, with different threadIDs. The system *could* simply schedule a million threads to do this, but GPUs do better than this. Instead, the compiler will transparently…

saved by

related reading