You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
Device conformance runs are signal-only (trnsci/trnsci#35). On a
device run (--backend nki --conformance-device neuron), the known
platform-limit cases in tests/test_conformance.py are marked xfail(strict=False) by category rules: complex-linalg (41 cases, #98)
and device-fp64 (60 cases, #147, which takes over #144's test_gmres_truncated[2-2] marker). CPU runs are unchanged and still run
every case. The run ends with a summary (passed, xfailed and XPASS by
category, NEW failures); --conformance-json PATH writes it as JSON, and scripts/conformance_expect.py merges chunked runs and exits 1 on NEW
failures. Test-only; no library change.
Fixed
subspace_filter_kernel / subspace_step_kernel PSUM accumulation
groups now open with a matmul write (trnsci/trnsci#185). The kernels
zeroed PSUM tiles with nl.zeros(..., buffer=nl.psum) (a memset) and then
accumulated into them with nisa.nc_matmul(..., accumulate=True). The nc_matmul docs make that undefined behaviour on NeuronCore-v3 (Trn2):
accumulating onto PSUM that a non-matmul instruction initialised is not
supported, and the first write must use accumulate=False. Device results
matched the references so far, but they relied on that behaviour. The five
sites (the on-chip X Q fold, the F-apply, the residual-norm reduction,
the Gram blocks and E = Y - X M) pass accumulate=(j > 0) over their
static loops, and their PSUM tiles are plain nl.ndarrays, so the
redundant memsets are gone. The two matmul_kernel variants in nki/dispatch.py already wrote with accumulate=False and are unchanged.
Simulator outputs are bitwise equal to 0.23.0 at the test shapes. A new
static lint (tests/test_psum_accumulate_lint.py) fails when a zeroed
PSUM tile is a matmul accumulation target, or when a tile is only ever
accumulated into.