This document is relevant for: Trn2, Trn3
nki.compiler.Allocation#
- class nki.compiler.Allocation(value)[source]#
How the compiler assigns SBUF, PSUM and HBM addresses to the tiles of the kernel (
CompileConfig.allocation).COLORING: the current flow. The compiler allocates the tiles with graph coloring after it traces the kernel.LINEAR: the new flow. The compiler allocates the tiles with linear scan before the rest of compilation. It assigns an address to a tile at its first write and releases the address after its last read.
See Allocation and scheduling modes.
Attributes
COLORINGLINEAR
This document is relevant for: Trn2, Trn3