neuron-nki-debugging
Installation
SKILL.md
Debugging NKI on Neuron Hardware
This skill provides a workflow for debugging NKI kernel compilation and execution on Trainium/Inferentia hardware.
Quick Start
Minimal working example to test kernel compilation on device:
import os
import torch
from torch_xla.core import xla_model as xm
import nki
import nki.language as nl
import nki.isa as nisa
os.environ["NEURON_CC_FLAGS"] = "--target trn2 --lnc 1"
os.environ["NEURON_PLATFORM_TARGET_OVERRIDE"] = "trn2"