.. post:: November 17, 2026
    :language: en
    :tags: announce-intent-eos-nki-virtualregister-lnc-apis

.. _announce-intent-eos-nki-virtualregister-lnc-apis:

Announcing end of support for NKI VirtualRegister APIs and nki.isa LNC functions in a future release
----------------------------------------------------------------------------------------------------

.. meta::
   :description: NKI 0.8.0 in Neuron 2.34 deprecates the VirtualRegister APIs and the nki.isa LNC functions, and announces local_gather and bitvec engine changes in a future release.
   :keywords: NKI, NKI 0.8.0, deprecation, VirtualRegister, NkiScalar, nki.lnc, sendrecv, core_barrier, local_gather, Neuron 2.34
   :date-modified: 2026-11-17

In :ref:`Neuron Release 2.34.0 <whats-new-2026-11-30-v2_34>`, 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.

.. list-table::
   :header-rows: 1
   :widths: 50 50

   * - 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 :ref:`nki-2-34-0-rn` and :ref:`nki-migrate-0-7-to-0-8`.
