Skip to content
Skills Library
Programming · Analysis

tt-noc-dump

/tt-noc-dump

Collect NoC traces from a Tenstorrent device to find kernel data-movement mistakes — most usefully a missing noc_async_write_barrier. Use when a kernel's NoC transfers are suspect, when output is corrupt in a way that points at unflushed writes, or when asked to check barrier discipline. Not for hangs parked on a barrier (that is tt-triage).

Repository
skills ↗
Licence
Apache-2.0
Last repository change
23.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 23.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Collect NoC traces from a Tenstorrent device to find kernel data-movement mistakes — most usefully a missing noc_async_write_barrier. Use when a kernel's NoC transfers are suspect, when output is corrupt in a way that points at unflushed writes, or when asked to check barrier discipline. Not for hangs parked on a barrier (that is tt-triage).

Original author description

Collect NoC traces from a Tenstorrent device to find kernel data-movement mistakes — most usefully a missing noc_async_write_barrier. Use when a kernel's NoC transfers are suspect, when output is corrupt in a way that points at unflushed writes, or when asked to check barrier discipline. Not for hangs parked on a barrier (that is tt-triage).

How it works

  1. When to invoke
  2. Surface
  3. Force the state
  4. Output
  5. Traps
Original SKILL.md headings · 71 lines, 411 words
SKILL.md preview
---
name: tt-noc-dump
description: Collect NoC traces from a Tenstorrent device to find kernel data-movement mistakes — most usefully a missing noc_async_write_barrier. Use when a kernel's NoC transfers are suspect, when output is corrupt in a way that points at unflushed writes, or when asked to check barrier discipline. Not for hangs parked on a barrier (that is tt-triage).
metadata:
  tier: kernel
  upstream:
    - repo: tenstorrent/tt-metal
      ref: f9f5f3e080c4ed3d09f7fa70da81316724fa298a
      path: docs/source/tt-metalium/tools/noc_debug_dump.rst
    - repo: tenstorrent/tt-metal
      ref: f9f5f3e080c4ed3d09f7fa70da81316724fa298a
      path: tt_metal/impl/debug/noc_debugging.cpp
---

# NoC debug dump

Instruments every NoC transaction with its type, source, destination, counters
and size. The host collects those packets, buckets them per core and per RISC,
and compares each trace against earlier traces and against other cores on the
same device. At the end it prints the problems it found, grouped by core.

Experimental upstream. No kernel changes are needed — the instrumentation is
automatic.

## When to invoke

- A kernel issues NoC transfers and you suspect a missing barrier.
- Output is wrong in a way that suggests writes never landed.
- Asked to audit barrier discipline on a data-movement kernel.

Not this skill: a core parked on `noc_async_write_barrier` right now is a hang,
and the callstack comes from `tt-triage`.

## Surface

| Variable | Effect |
|---|---|
| `TT_METAL_NOC_DEBUG_DUMP=1` | Enables trace collection and the end-of-run analysis. |
| `TT_METAL_RECORD_NOC_TRANSFER_DATA` | Records transfer payload data alongside the metadata. |

## Force the state

The upstream test issues a multicast write followed by a multicast semaphore
increment with no write barrier after it — the canonical missing-barrier shape.

```bash
TT_METAL_NOC_DEBUG_DUMP=1 build/test/tt_metal/unit_tests_noc_debugging \
  --gtest_filter=NOCDebuggingFixture.McastOnlyWriteFlush
```

## Output

Printed to the console, not to a file. Emitted when the program finishes, when
the device closes, or when `ReadDeviceProfilerResults` is called explicitly.

```
========== NOC Debug Summary ==========
Unflushed async writes at kernel end
(missing noc_async_write_barrier):
    Device 0 (18,18) Processor 0 [semaphore mcast]
=======================================
```

Each finding names the device, the core coordinate, the processor index, and a
tag for the transaction kind that was left unflushed. On a multi-device run the
summary reprints and accumulates, so the same finding appears once per device
close — read the last block, and treat repeats of an earlier device's row as
history rather than as new findings.

## Traps

**It cannot run alongside watcher, the profiler, or kernel prints.** All four
compete for the same kernel binary budget, and the upstream note is explicit
that they are mutually exclusive with this feature. Unset the others first.

**A clean summary is not proof of correct barrier discipline.** The NoC is
non-deterministic: an acknowledgement can return before the trace notices the
missing barrier, so a real bug can pass. Treat a finding as evidence and a clean
run as weak.

**It costs measurable time.** Host transfers on both directions plus 1–15%
kernel cycles. Do not leave it on for a performance measurement, and do not
compare timings taken with it against timings taken without.

Versions

The database has no other skills named tt-noc-dump.

Database snapshot: 13.11.2026 · package version ffabbe52ea65 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100tt-triage
    Read the state of a hung or stuck Tenstorrent device with tt-triage — which op was running, where each RISC is parked, whether the on-device code and mailboxes are intact, whether NoC, Ethernet and ARC are healthy. Use when a job hangs, a test stops making progress, an assert…
  • 100tt-watcher
    Watch a Tenstorrent device from a polling thread inside the run — catch bad NoC transactions, circular-buffer overflows, L1 overflows, tripped kernel asserts, stack overflows, and where each RISC is parked. Use when a kernel corrupts memory, a transfer targets a core that does…
  • 100add-project
    Guide the user through submitting a new entry to the Awesome Tenstorrent list. Use when the user wants to add, submit, or propose a project, library, tool, or resource to tt-awesome.
  • 100kernel-concurrency
    Kernel concurrency skill for Linux locking and synchronization. Use when choosing spinlocks vs mutexes, using RCU, seqlocks, completions, or applying memory barriers in kernel code. Activates on queries about kernel spinlock, mutex, RCU, seqlock, memory barrier, or PREEMPT_RT locking.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.