nki
============

.. currentmodule:: nki

The ``nki`` module provides the top-level entry points for compiling and running NKI kernels.
Use the :func:`jit` decorator to compile a kernel for NeuronDevices,
:func:`simulate` / :func:`multi_rank_simulate` to run a kernel in the CPU simulator for
debugging, or :func:`execute` / :func:`multi_rank_execute` to run a kernel on Neuron
hardware without a machine learning framework.

.. _nki_decorators:

NKI Decorators
--------------------

Compile and run decorated kernels on Neuron hardware.

.. autosummary::
   :toctree: generated
   :nosignatures:

   jit

.. _nki_simulator:

NKI Simulator
--------------------

Run a kernel on the CPU without Neuron hardware.

.. autosummary::
   :toctree: generated
   :nosignatures:

   simulate
   multi_rank_simulate

.. _nki_standalone:

NKI Standalone
--------------------

Run a kernel on Neuron hardware without a machine learning framework.

.. autosummary::
   :toctree: generated
   :nosignatures:

   execute
   multi_rank_execute
