dieprobe

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2026 License: Apache-2.0 Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Die locality probe

Use one GPU selected by UUID and a clean checkout. The run needs the repository Go workspace. CUDA locality-domain support and NVRTC 13.5 or later are required for the two-domain path. Run from the worktree root with the assigned CUDA_VISIBLE_DEVICES already set.

cd nvidia && GPU_LOCK_LIMIT=1200 gpu-lock env CUDA_VISIBLE_DEVICES="${CUDA_VISIBLE_DEVICES:?set assigned GB300 UUID}" DIEPROBE_NATIVE=1 DIEPROBE_COMMIT="$(git rev-parse HEAD)" DIEPROBE_OUT="$PWD/dieprobe" go test -count=1 -timeout=20m -v -run '^TestNative$' ./x/obs/diag/dieprobe

Return dieprobe.json and dieprobe.md. Use a fresh output location per run. On a null-control failure, return the Markdown diagnostic. The probe withholds the per-domain JSON if any process exceeds the 5% relative same-die drift band. The runner samples three independent processes with alternating ABBA and BAAB order, and reports medians across process medians. It checks the SM map against green-context execution and checks each memory arm's allocation ordinal. An allocation reporting no binding is labeled interleaved in the tables. The ordinal establishes default placement eligibility and the physical striping of the allocation remains unmeasured.

The latency probe uses a dependent L2-cached load chain. The store probe times stores followed by a device fence. The small footprint is the cache-resident candidate and the large footprint is the streaming candidate. Fabric counters are required to qualify the physical traffic and the cache-hit interpretation. The timing and instrumented launches run separately within each process. The JSON retains each process’s raw matched and mismatched fabric sectors, or an unavailable reason. Use the raw latency sweep to locate a capacity crossover before populating a locality profile. A driver reporting a single domain or no domain count runs only the topology smoke. Its JSON contains the observed SM count, with domain_count_reported: false when the driver did not provide a count. The smoke JSON omits SM-to-domain mappings, timings, and fabric counters.

Documentation

Overview

Package dieprobe measures GPU locality-domain topology, access latency, bandwidth, allocation cost, and compute binding.

This package is outside the compatibility promise of github.com/tmc/lib/nvidia. Its API may change or be removed in patch releases.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL