This document is relevant for: Trn2, Trn3
nki.compiler#
The nki.compiler module provides the public per-kernel configuration passed
to nki.jit().
Per-kernel config#
Passed to the nki.jit() decorator as
@nki.jit(compile_config=CompileConfig(...), specialization_config=SpecializationConfig(...)).
CompileConfig holds options that impact downstream compiler behavior;
SpecializationConfig holds options that tune the specialization phase.
Per-kernel compile configuration passed to |
|
Per-kernel specialization-time config passed to |
|
Which tensors the compiler can move to a different SBUF address or PSUM bank after allocation (see |
|
How the compiler assigns SBUF, PSUM and HBM addresses to the tiles of the kernel ( |
|
How the new allocation selects an address for each tile ( |
|
How the new scheduling selects the next instruction from the ready instructions ( |
|
How many optimizations the compiler applies in the new flow ( |
This document is relevant for: Trn2, Trn3