Announcing end of support for NKI VirtualRegister APIs and nki.isa LNC functions in a future release#
In Neuron Release 2.34.0, NKI 0.8.0 deprecates the following APIs. A future NKI release removes them. When your
kernel uses one of them, NKI raises a DeprecationWarning. Python shows this warning only when
deprecation warnings are enabled.
Deprecated API |
Use instead |
|---|---|
|
The same functions in |
|
|
NKI 0.8.0 also announces these future changes:
local_gather: If you omit
num_valid_indicesinnki.isa.local_gather, the results are undefined, and NKI warns. Passnum_valid_indicesexplicitly. In a future release, the default will becomedst_free_size / num_elem_per_idx, and some values ofnum_valid_indicesthat NKI currently accepts with a warning will become errors.Bitvec operators: A future release rejects
engine=nki.isa.engine.gpsimdfornki.isa.tensor_tensor, andnki.isa.engine.scalarornki.isa.engine.gpsimdfornki.isa.tensor_scalar, with a bitvec operator. Passengine=nki.isa.engine.vectoror remove theengineargument.
For details, see Neuron Kernel Interface (NKI) [0.8.0] (Neuron 2.34.0 Release) and Migrating from NKI 0.7.0 to NKI 0.8.0.