tl.program_id(0) returns: the index of the current parallel block
Image: Svein-Magne Tunli, CC BY-SA 3.0, via Wikimedia Commons
tl.program_id(0) returns: the index of the current parallel block
tl.arange(0, BLOCK_SIZE) creates: a range of indices within the current block
How do you pick specific items from a list without going through them one by one?
tl.dot does in Triton: block-level matrix multiply using tensor cores
tl.dot performs block-level matrix multiplication using tensor cores in Triton
BLOCK_SIZE means in Triton: the tile size each program instance processes
Why does your computer sometimes feel slow when you're playing games?
loop unrolling does: trades code size for reduced loop overhead
Can we speed up our computer programs?
tl.load and tl.store do in Triton: read/write tensors from/to GPU global memory
`tl.load` reads tensors from GPU memory; `tl.store` writes tensors to GPU memory
Triton differs from CUDA
Why does a super-fast computer sometimes run slower than a regular one?
Swipe through 100 ML concepts daily
Open Pocket Polymath