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

nki.isa.sendrecv, nki.isa.sendrecv_compute, nki.isa.core_barrier

The same functions in nki.lnc. Remove the pipe_id argument, which NKI 0.8.0 ignores.

nki.isa.register_alloc, register_move, register_load, register_store, and nki.isa.VirtualRegister

nki.isa.scalar_load and nki.isa.scalar_store with nki.isa.NkiScalar

NKI 0.8.0 also announces these future changes:

  • local_gather: If you omit num_valid_indices in nki.isa.local_gather, the results are undefined, and NKI warns. Pass num_valid_indices explicitly. In a future release, the default will become dst_free_size / num_elem_per_idx, and some values of num_valid_indices that NKI currently accepts with a warning will become errors.

  • Bitvec operators: A future release rejects engine=nki.isa.engine.gpsimd for nki.isa.tensor_tensor, and nki.isa.engine.scalar or nki.isa.engine.gpsimd for nki.isa.tensor_scalar, with a bitvec operator. Pass engine=nki.isa.engine.vector or remove the engine argument.

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.