This document is relevant for: Inf2
, Trn1
, Trn2
nki.compiler.psum.auto_alloc#
- nki.compiler.psum.auto_alloc()[source]#
Returns a maker to indicate the tensor should be automatically allocated by compiler. All PSUM tensors in a kernel must either all be marked as
auto_alloc()
, or all be allocated withalloc
ormod_alloc
.Initialize a tensor with
buffer=nl.psum
is equivalent tobuffer=ncc.psum.auto_alloc()
.
This document is relevant for: Inf2
, Trn1
, Trn2