x/

directory
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

README

nvidia/x

Hand-written packages built on the generated NVIDIA bindings.

This inventory describes the source tree that generated it, not installed CUDA libraries or hardware support. Regenerate before relying on it. From the nvidia module, run go run ./internal/cmd/xinventory; use -root to select another package directory, or -check to check for drift.

Package Package documentation
compile/artifact Package artifact provides deterministic manifests, multi-root tar bundling, settle-gated publication, pod-local install coordination, and bounded chunk lease management for compiled GPU caches (such as CUDA graphs, Triton, DeepGEMM, FlashInfer, CuTe DSL, and torch.compile caches).
compile/batchargmax Package batchargmax defines the deterministic BatchArgmax source recipe.
compile/budget Package budget checks CUDA compilation resource budgets (registers, stack frames, spill loads/stores, and shared memory) across target SM architectures and enforces the repository-wide kernel census.
compile/cudakorrect Package cudakorrect implements a staged kernel correctness harness and deterministic txtar iteration bundle emitter for CUDA C, PTX, Tile IR, and SASS candidates.
compile/cudalsp Package cudalsp implements a pure-Go Language Server Protocol (LSP 3.17) server and multi-language analysis engine for GPU kernel development.
compile/fatbin Package fatbin packs and unpacks CUDA fatbinary containers via libnvfatbin and loads ahead-of-time precompiled fatbinaries with runtime NVRTC fallback.
compile/hotswap Package cudahotswap checks and replaces CUDA kernels in a retained service.
compile/hotswap/httpapi Package httpapi exposes cudahotswap.Service as bounded JSON over HTTP.
compile/hotswap/stage Package stage builds and pins CUDA host-glue libraries with the entry ABI int stage(struct stage_ctx *).
compile/kernelhub Package kernelhub reads GPU kernels published on the Hugging Face kernel hub, so that Go programs can check and launch them.
compile/nvjitlink Package nvjitlink links device PTX, CUBIN, fatbin, and LTO-IR inputs via libnvJitLink.
compile/nvrtc Package nvrtc compiles CUDA C++ sources via libnvrtc and provides a content-addressed on-disk artifact cache for compiled PTX, CUBIN, and LTO-IR outputs.
compile/nvvm Package nvvm lowers NVVM IR modules and compiles them to PTX via libnvvm, including address-space def-use specialization passes.
compile/ptxcubin Package ptxcubin compiles PTX to a CUBIN for one physical target.
cuda Package cuda provides Idiomatic Go device, context, stream, event, module, memory, kernel launch, data-type, and capability-sentinel primitives over the NVIDIA CUDA Driver API.
cuda/checkpoint Package checkpoint coordinates NVIDIA CUDA process checkpointing and restoration using the CUDA Driver Process Checkpoint API.
cuda/cublaslt Package cublaslt provides an owning cuBLASLt matrix multiplication engine.
cuda/cudatest Package cudatest provides owned CUDA device fixtures, toolchain provenance helpers, liveness controls, event-timed benchmarks, write-domain coverage contracts, PTX memory-model litmus tests, and device struct layout checks.
cuda/graph Package graph builds, captures, instantiates, and replays CUDA execution graphs, plans SM-partitioned green contexts, and validates cooperative thread and warpgroup execution groups.
cuda/handoff Package handoff implements graceful binary upgrades for CUDA processes, combining listener file-descriptor inheritance with CUDA Virtual Memory Management (VMM) POSIX file-descriptor slab handoff.
cuda/hotreload Package hotreload provides reusable building blocks for live CUDA kernel hot-reload loops: NVRTC compile input validation, a monotonic generation state machine with parity-gated promotion and rollback tracking, line-level diffing, and a self-contained Server-Sent Events (SSE) live view.
cuda/kernel Package kernel models CUDA kernel artifacts, reusable kernel specifications, fixed-width parameter ABI schemas, CUBIN inspection, target SM capabilities, admission clauses, dynamic shared-memory headroom budgets, and host/device struct layout specs.
cuda/lane Package lane holds the resources of one execution lane on a CUDA device: a stream, a tracked device memory arena, and the per-lane resources, such as modules and matrix plans, built for that stream.
cuda/lock Package lock provides cooperative host-wide GPU lock leasing and host-side device allocation leak tracking.
cuda/mmap Package mmap provides read-only memory-mapped host weight files with CUDA host-memory registration, multi-backend bulk file-to-device loading, and chunked hardware/host tensor decompression.
cuda/nvtx Package nvtx provides a pure-Go, zero-cgo implementation of NVIDIA Tools Extension (NVTX v3).
cuda/vmmarena Package vmmarena provides a per-allocation-handle CUDA Virtual Memory Management (VMM) bump arena, allocation boundary discovery, and segment-bounded memory region coalescing for GPU weight transfers.
cuda/weightipc Package weightipc shares resident GPU model weights across processes using CUDA Virtual Memory Management (VMM) POSIX file descriptors over AF_UNIX sockets (SCM_RIGHTS) or legacy cudaIpcMemHandle handles.
fabric/ncclx Package ncclx provides NCCL 2.31 device-API resources, GIN and symmetric window tables, structured Inspector log/OTLP/stall decoding, cross-rank collective joins, RAS JSON/text diagnostics, host-oracle collective verification, multi-rank collective transports and rank groups, and MoonEP NVLink symmetric expert-parallel buffers, without nvcc or cgo.
fabric/ncclx/ncclboot Package ncclboot creates one NCCL communicator rank per process, so a communicator can span processes and hosts.
fabric/nvl72 Package nvl72 emits multi-GPU NVLink 5 and NVLink 6 symmetric-memory collective kernels, 72-rank Wide Expert Parallelism (Wide-EP) pipelines, O(1) NVSwitch multicast barriers, and 4-tier GB200 NVL72, GB300 NVL72 and Vera Rubin NVL72 rack and pod planners.
fabric/nvlshm Package nvlshm provides cross-process NVLink shared GPU buffers built on the CUDA virtual memory management (VMM) API, with optional NVSwitch multicast mappings.
fabric/nvlshm/tcpboot Package tcpboot provides a minimal TCP implementation of nvlshm.Bootstrap for single-host multi-process jobs and tests.
fabric/weightdist Package weightdist implements peer-to-peer model weight discovery, canonical source identity hashing, fail-closed accelerator compatibility, Grove datacenter topology policy, stateless source selection, metadata registry coordination, and per-worker tensor manifest serving.
fabric/weightxfer Package weightxfer coordinates batched one-sided GPU weight transfers over a minimal RMA Engine contract with strict handle-release discipline, post-RDMA device synchronization, region coalescing with rollback retry, and non-latching data-plane health tracking.
host/bisect Package bisect implements the target side of golang.org/x/tools/cmd/bisect for deterministic change bisection.
host/cubin Package cubin reads, edits and writes CUDA ELF images (cubins).
host/devloop Package devloop implements a model-agnostic GPU kernel hot-reload dev-loop engine with layered security controls, compare-and-swap (CAS) generation management, redacted audit receipts, a live SSE event bus, append-only txtar session notebooks, and a canonical kernel slot registry.
host/elf Package elfinspect reads ELF headers, sections, segments, and symbol tables.
host/equiv Package equiv proves, with an SMT solver, that a candidate GPU kernel computes bit for bit what a reference kernel computes, for every input a launch contract allows.
host/eval Package eval provides numerical parity verdicts, floating-point bit sweeps, blind permutation evaluation gates, multi-gate change admission receipts, and determinism auditing inside parity bisection.
host/eval/agenttrace Package agenttrace reads, replays and scores agent workload traces in the replay format of the Evolving Infra benchmarks (the Trie client's schema-v2 traces and schema-v3 tasks, one JSON object per line).
host/grammar Package cudagrammar constrains language model generation to JSON that conforms to a schema.
host/otlp Package otlp provides hardware-neutral OpenTelemetry trace wire encoding, schema validation, span tracing, claim checking, and collector test sinks.
host/perfetto Package perfetto implements a streaming wire-format encoder for Perfetto trace files (.pftrace) compatible with the Chrome / Perfetto UI trace viewer.
host/receipt Package receipt defines the vendor-neutral kernelreceipt/v0 wire format, structural and statistical validation rules, gate definition digests, and re-execution verification engine for checked GPU kernels.
host/safetensors Package safetensors reads and writes the Hugging Face safetensors format.
host/shape Package cudashape provides checked multi-dimensional tensor shapes, overflow-checked byte size calculation, stride and layout analysis, and bounded symbolic dimension binding with equality and divisibility constraints.
host/shape/rope Package rope computes rotary position embedding inverse frequencies the way Hugging Face transformers does.
host/sys Package sys provides read-only file mapping, CLI flag hygiene checks, keyed text redaction, run identifiers, and deterministic virtual and test clocks.
host/taskgraph Package cudataskgraph validates finite task DAGs and tracks epoch-scoped publication and abort state.
host/timing Package timing provides paired ABBA timing, trial receipts, statistical estimators, co-run and goodput harnesses, load and judge profiles, and host quietness checks.
host/traysup Package traysup implements a hardened local process supervisor for GPU development pods.
host/txtar Package txtar implements a pure-stdlib reader, formatter, manifest builder, and versioned in-memory virtual workspace ([VFS]) for txtar archives.
host/weighttransfer Package weighttransfer transfers independently pinned safetensors weights.
ir/contract Package contract defines declarative kernel launch contracts, host-side preflight validation, and digest-bound proof certificates for Tile IR kernels.
ir/egraph Package egraph implements a lightweight, pure-Go E-Graph (equivalence graph) and equality saturation engine for term rewriting, program optimization, kernel fusion, declarative CUDA Tile C++ generation, and sub-byte quantized inference.
ir/graph Package graph provides the core tensor computation DAG IR, fluent tensor construction, einsum rank canonicalization, speed-of-light bounds, device function emission, and model architecture fact extraction.
ir/lean Package lean provides a fail-closed 1-to-1 Tile IR to Lean 4 exporter and formal obligation verifier.
ir/lower Package lower provides tensor-term lowering, graph fusion, ONNX/StableHLO/TileIR frontends, tensor/expert-parallel megakernel builders, and KernelSpec candidate discovery.
ir/plan Package plan provides executable DAG plans, multi-backend agreement checking, cross-layer serving step plans, AOT multi-arch bundles, and multi-bucket decode orchestration.
ir/rank Package rank provides kernel ranking, roofline cost forms, beam/MCTS schedule search, hardware-in-the-loop autotuning, PGO qualification, and precision Pareto search.
isa/devicetable Package cudadevicetable holds GPU device facts that were read from a real device, separated from the ones that were not.
isa/devicetable/instrument Package instrument says, for each hardware value the planners in this module read, what measures it on the device it describes.
isa/lineinfo Package lineinfo attributes PTX and SASS instructions back to host and CUDA source lines, wraps cuobjdump/nvdisasm extraction, and inspects compiled kernel resource provenance.
isa/ptx Package ptx parses and audits NVIDIA PTX modules, parses ptxas -v resource diagnostics, and verifies PTX barrier/fence schedules and recorded-run campaign verdicts.
isa/ptx/ptxaddr Package ptxaddr reports local PTX address hazards for review.
isa/ptx/ptxast Package ptxast is a typed syntax tree for PTX, with a parser and a printer.
isa/ptx/ptxbuild Package ptxbuild builds PTX modules in Go.
isa/ptx/ptxequiv Package ptxequiv gives PTX kernels a bit-precise semantics for package equiv: Kernel.Effect translates a kernel into the guarded loads and stores of one symbolic thread, and Kernel.Run executes one thread on concrete values to replay counterexamples.
isa/ptx/ptxpass Package ptxpass analyses and rewrites PTX syntax trees from package ptxast.
isa/ptxsync Package ptxsync checks conservative subsets of PTX synchronization.
isa/sass Package sass parses and analyzes NVIDIA SASS disassemblies, models SM occupancy and memory-hierarchy residency, extracts kernel parameter memory effects, wait bounds, and cubin contracts, audits PTX/LLVM-to-SASS lowering, and checks trace-free bounded SASS equivalence.
isa/tileir Package tileir builds, parses, validates, assembles, and disassembles CUDA Tile IR modules and bytecode.
isa/tileir/refmath Package refmath has the float64 mathematical functions that the Tile IR interpreter and CPU implementations of Tile IR operations compute with as the reference for what a device computes.
isa/tileir/tilebuild Package tilebuild constructs CUDA Tile IR operations for [github.com/tmc/lib/nvidia/x/tileir] modules.
isa/tileir/tileprintf Package tileprintf formats what the Tile IR operation print_tko prints: a C printf format whose expressions each print a tile of integers or floats.
nn/attn Package attn provides scaled dot-product, paged GQA, Multi-head Latent Attention (MLA), split-K decode, Gated DeltaNet, Kimi Delta Attention (KDA), tree attention, manifold-constrained hyper-connections (mHC), attention residuals, context-parallel 3D pipelines, and fused transformer layers.
nn/attnres Package attnres implements attention over residual sources on the host and CUDA.
nn/batch Package batch provides continuous token-level batch scheduling, RadixAttention prefix KV trees, and speculative batch verification cycles.
nn/ckpt Package ckpt provides zero-copy SafeTensors loading, typed checkpoint tensor binding, NVIDIA ModelOpt quantized weight metadata decoding, multi-rank loading strategy chains with mutation-aware rollback, speculative draft publication gating, role-scoped shard selection, and cold-load quantization scale validation.
nn/hostemu Package hostemu runs CUDA kernel source on the host CPU, for testing kernels where no GPU is available.
nn/kv Package kv provides paged, quantized, and rotated key-value cache layouts, block-table allocators, device C++ headers, and fused KV append kernels.
nn/kv/tier Package tier implements a three-tier asynchronous KV-cache offloader across GPU VRAM, pinned CPU RAM, and NVMe SSD storage without stalling the decode loop.
nn/kvquant Package kvquant implements a pure-Go CPU reference for NVFP4 and MXFP4 KV-cache quantization and single-query decode attention.
nn/logprob Package logprob records per-token log-probabilities of scored sequences and compares records from different engines or paths.
nn/moe Package moe provides Mixture-of-Experts routing, token permutation, grouped GEMM epilogues, NVFP4 expert weight streaming, Engram memory lookup, and Two-Batch Overlap (TBO) expert-parallel kernels.
nn/moe/ep Package ep implements a single-host and loopback Mixture-of-Experts (MoE) expert-parallel router with rank-deduped all-to-all dispatch and combine, capacity-factor overflow policies, and live Expert Parallelism Load Balancer (EPLB) weight shuffling.
nn/moe/mxfp8gemm Package mxfp8gemm multiplies MXFP8 matrices group by group, as a mixture-of-experts layer does, on the tensor cores of sm_100a and sm_103a: each group of rows of x, the tokens routed to one expert, by that expert's weights.
nn/quant Package quant provides block-scaled quantization formats, weight prepacking, and fused normalization/activation quantization CUDA kernels (Q4_0, Q8_0, Q8_1, OCP FP8 E4M3FN, MXFP8, MXFP4, NVFP4 E2M1, UE8M0, Q2_K, IQ2_XXS, U2).
nn/quant/calibrate Package calibrate implements post-training NVFP4 and INT4 weight and activation calibration, NVIDIA ModelOpt safetensors export, exact float64 teacher-forced perplexity and KL-divergence evaluation, and VRAM/latency reporting.
nn/ref Package ref provides CPU float64 reference oracles, graph interpreters, differential trace accumulators, and numerical parity verifiers for neural network and tensor kernels under nvidia/x/nn and nvidia/x/ir.
nn/sample Package sample provides GPU token-sampling kernels including argmax, temperature scaling, top-k, top-p (nucleus), min-p, and Philox Gumbel-max.
nn/serve Package serve provides OpenAI-compatible HTTP inference serving and SGLang gRPC worker endpoints.
nn/serve/cert Package cert records what has been checked about a serving image and checks the record against what is loaded.
nn/serve/disagg Package disagg implements single-host disaggregated prefill and decode serving over loopback framed KV transfers.
nn/shortconv Package shortconv implements static causal depthwise convolution over BF16 input rows on the host.
nn/spec Package spec provides speculative decoding verification, draft-tree mask construction, multi-token prediction (MTP) paged attention, EAGLE-3/MCTS reasoning trees, early-exit confidence probes, and adaptive flight buckets.
nn/spec/dfly Package dfly reads DFly2 drafter checkpoints and checks their compatibility with a paired DeepSeek V4.1 target before device execution.
nn/spec/paralleldraft Package paralleldraft implements the model-agnostic parts of parallel ("diffusion") speculative drafters such as DFlash, DSpark and DNeo.
nn/train Package train provides reverse-mode autograd, optimizer state update kernels (AdamW, Muon/Newton-Schulz, RL policy updates), block/multi-GPU reductions, sparse-teacher distillation, DualPipe bidirectional schedules, activation rematerialization, and float64 finite-difference gradient checking.
obs/advisefeedback Package advisefeedback implements canonical, model-agnostic, scorer-attributed profiling advise findings, pre-edit pending outcome tracking, explicit feedback with verifiable evidence gates, Wilson score lower confidence bound ranking with a Bayesian exploration prior, human review queues, and cross-model transfer matrices.
obs/bpf Package bpf provides host eBPF policy budgets, device-side BPF launch records, and host-GPU trace collection.
obs/cudacallgraph Package cudacallgraph links host launches, GPU source, and recorded artifacts.
obs/cudacallgraph/launchgo Package launchgo resolves typed Go CUDA launch sites to their available kernel identities.
obs/cudapmpred Package cudapmpred provides SASS pm_pred per-instruction event counting and PTX %pm0..%pm7 baseline counter auditing for NVIDIA sm_121a (GB10).
obs/cudapmreg Package cudapmreg reads the SM performance-monitor special registers SR_PM0..SR_PM7 (and their high halves) on sm_121a, with and without a profiling session, and retargets the reads to the SR_SNAP_PM snapshot bank.
obs/cudaprof Package cudaprof captures, correlates, analyzes, and exports CUDA profiles, traces, OTLP spans, and profile history.
obs/cudaprof/advise Package advise evaluates CUDA profiles, hardware counters, and timelines against diagnostic performance rules.
obs/cudaprof/advise/advisecheck Package advisecheck validates advise rule citations, emission sites, and corpus scorecards.
obs/cudaprof/iteration Package iteration segments CUDA timeline streams into deterministic training and serving step iterations.
obs/cudaprof/limiter Package limiter says why a kernel launch is slow and what to change.
obs/cudaprof/overview Package overview summarizes and compares GPU kernel pprof profiles against regex op-classification rules and renders self-contained, zero-CDN HTML overview reports with inline SVG breakdowns, per-op delta bars, staging memcpy callouts, top kernel tables, and SHA-256 provenance footers.
obs/cudaprof/stallmap Package stallmap attributes a kernel's PC sampling stalls to its SASS instructions and source lines.
obs/cudaprof/timeline Package timeline reconstructs ordered host and device execution timelines from CUDA capture journals.
obs/cudaprof/tracecontract Package tracecontract defines portable trace binding and artifact contracts shared across CUDA profiling and telemetry pipelines.
obs/cudas2r Package cudas2r provides a telemetry oracle for NVIDIA SASS special registers (SR 0..255) accessible via S2R, CS2R, and S2UR instructions on sm_121a (GB10).
obs/cudatimer Package cudatimer measures what the SM timer registers mean: the tick of %globaltimer, whether a split LO/HI read can tear, the SM clock rate against %globaltimer, and whether %globaltimer agrees across SMs.
obs/cuptix Package cuptix provides CUPTI activity, callback, checkpoint, PC sampling, PM sampling, range profiling, SASS counter, and benchmark collection on NVIDIA GPUs.
obs/cuptix/benchfmt Package benchfmt reads and formats GPU benchmark records in Go benchmark and JSON interchange layouts.
obs/cuptix/dutycycle Package dutycycle computes active and idle GPU duty-cycle intervals from PM sampling streams.
obs/diag Package diag provides GPU roofline models, kernel census, evidence records, microbenchmark probes, reproducer reduction, sanitizer runners, quarantined candidate launches, and workload diagnostics.
obs/diag/bwprobe Package bwprobe measures device memory and cache bandwidth ceilings, block shapes, stream/owned mixes, and read/write mixes using calibrated GPU microbenchmarks.
obs/diag/dieprobe Package dieprobe measures GPU locality-domain topology, access latency, bandwidth, allocation cost, and compute binding.
obs/diag/errbound Package errbound checks kernel outputs against error bounds derived from a reference computation graph at a declared precision.
obs/diag/errbound/errboundcuda Package errboundcuda runs CUDA kernels as [errbound.Kernel] values, on a GPU through NVRTC or on the host CPU through cudahostemu, so that [errbound.Check] can certify them.
obs/diag/errbound/plant Package plant holds a corpus of CUDA kernels that cheat kernel correctness checks, with honest controls, for testing checkers such as [github.com/tmc/lib/nvidia/x/obs/diag/errbound].
obs/diag/gemmrate Package gemmrate measures the dense tensor-core GEMM rate a device achieves on one shape.
obs/diag/hotcold Package hotcold measures what one SASS instruction costs by timing a kernel against a copy of itself with that instruction replaced by a NOP.
obs/diag/icacheprobe Package icacheprobe measures GPU instruction-cache capacity and miss boundaries across loop footprints.
obs/diag/kernelcheck Package kernelcheck checks compiled NVIDIA CUBIN artifacts against their static ELF/SASS launch contracts, IEEE-754 float32 numerical parity, and CUDA-event interleaved paired timing, producing and verifying kernelreceipt/v0 receipts.
obs/diag/kernelcheck/launchplan Package launchplan captures a GPU program's launches as a declarative plan and replays the plan without the program.
obs/diag/launchprobe Package launchprobe measures CUDA kernel launch latency and queue overhead.
obs/diag/mioprobe Package mioprobe measures whether reading a special register costs more when many warps on one SM read special registers at once.
obs/diag/obsevidence Package obsevidence holds portable measurement evidence records and claim verdicts re-exported by x/obs/diag and x/obs/diag/obsmodel.
obs/diag/obsmodel Package obsmodel provides hardware-neutral GPU roofline ceiling models and kernel execution census analysis.
obs/diag/peerprobe Package peerprobe times the hop latency between two GPUs through peer-mapped memory.
obs/diag/prefetchprobe Package prefetchprobe measures L2 and global memory prefetch latency and SM rank behavior.
obs/diag/sfuprobe Package sfuprobe measures the throughput of the special function unit (MUFU) against FFMA on one GPU, in operations per SM per clock.
obs/diag/smtopology Package smtopology probes streaming multiprocessor cluster and cache topology on NVIDIA GPUs.
obs/diag/streamread Package streamread measures sustained device global-memory read bandwidth across configurable streaming access patterns.
obs/diag/syncprobe Package syncprobe measures device, stream, and event synchronization latency.
obs/iket Package iket provides intra-kernel execution tracing (IKET), device ring buffers, CUDA phase markers, and GPU flight-recorder bundles.
obs/iket/ikettrace Package obsiket implements the core in-kernel event trace and phase analysis layer.
obs/iket/ring Package ring decodes device-side in-kernel %globaltimer event ring buffers.
obs/racedet Package racedet reports shared memory data races in CUDA kernels in one form, whichever engine found them.
obs/sanpatch Package sanpatch provides an in-process CUDA Compute Sanitizer device-patching oracle built on the Compute Sanitizer public API.
obs/straggler Package straggler detects slow and intermittent GPU stragglers across single and multi-node clusters without PyTorch or cgo.
obs/telemetry Package telemetry provides GPU fleet telemetry, NVML/DCGM/nvidia-smi readers, XID error catalogs and log parsers, and Nsight Compute/Systems importers.
obs/tracedb Package tracedb defines a zero-dependency interface, schema, and read-only SQL policy for storing and querying GPU traces and telemetry-review sessions in ClickHouse-compatible engines such as chDB.
obs/tracedb/chdbengine Package chdbengine provides an isolated, zero-cgo purego adapter for libchdb (in-process ClickHouse) with pinned SHA-256 library verification, dedicated restricted ClickHouse RBAC user isolation (tracedb_ro), ClickHouse C++ AST classification, and a hard CUDA process isolation guard.
obs/tracedb/localengine Package localengine provides a strictly fail-closed, zero-cgo, pure-Go fallback [tracedb.Engine] backed by JSONL files (or in-memory storage).
tile/layout Package layout provides checked physical tile layouts, CuTe layout algebra, Tensor Memory Accelerator (TMA) transfer and multicast planning, Blackwell Tensor Memory (TMEM) allocation protocols, thread-block-cluster distributed shared-memory emitters, per-block shared-memory planning, cooperative block primitives, and static/dynamic mbarrier pipeline verification.
tile/mega Package mega schedules persistent CUDA megakernels, device-driven step loops, programmatic dependent launches (PDL), register redistribution protocols, bounded device waits, and step-descriptor replay logs.
tile/prefill Package prefill lowers block-FP8 prefill projections to Tile IR.
tile/tcgen05 Package tcgen05 implements Blackwell (sm_100a, sm_103a, sm_100f, sm_103f) and Vera Rubin (sm_107a, sm_107f) Tensor Memory (TMEM) Fifth- and Sixth-Generation Tensor Core (tcgen05 / PTX ISA 9.4), FlashAttention-4 paged and absorbed Multi-head Latent Attention (MLA), 2:4 structured sparsity and spcompress, and Cluster Launch Control (CLC) kernel emitters, hardware descriptors, and GB200/GB300/VR200 residency planners.
tile/tcgen05/mmaarith Package mmaarith models NVIDIA Blackwell tcgen05 dot and accumulator arithmetic with integers.

Directories

Path Synopsis
compile
artifact
Package artifact provides deterministic manifests, multi-root tar bundling, settle-gated publication, pod-local install coordination, and bounded chunk lease management for compiled GPU caches (such as CUDA graphs, Triton, DeepGEMM, FlashInfer, CuTe DSL, and torch.compile caches).
Package artifact provides deterministic manifests, multi-root tar bundling, settle-gated publication, pod-local install coordination, and bounded chunk lease management for compiled GPU caches (such as CUDA graphs, Triton, DeepGEMM, FlashInfer, CuTe DSL, and torch.compile caches).
batchargmax
Package batchargmax defines the deterministic BatchArgmax source recipe.
Package batchargmax defines the deterministic BatchArgmax source recipe.
budget
Package budget checks CUDA compilation resource budgets (registers, stack frames, spill loads/stores, and shared memory) across target SM architectures and enforces the repository-wide kernel census.
Package budget checks CUDA compilation resource budgets (registers, stack frames, spill loads/stores, and shared memory) across target SM architectures and enforces the repository-wide kernel census.
cudakorrect
Package cudakorrect implements a staged kernel correctness harness and deterministic txtar iteration bundle emitter for CUDA C, PTX, Tile IR, and SASS candidates.
Package cudakorrect implements a staged kernel correctness harness and deterministic txtar iteration bundle emitter for CUDA C, PTX, Tile IR, and SASS candidates.
cudalsp
Package cudalsp implements a pure-Go Language Server Protocol (LSP 3.17) server and multi-language analysis engine for GPU kernel development.
Package cudalsp implements a pure-Go Language Server Protocol (LSP 3.17) server and multi-language analysis engine for GPU kernel development.
fatbin
Package fatbin packs and unpacks CUDA fatbinary containers via libnvfatbin and loads ahead-of-time precompiled fatbinaries with runtime NVRTC fallback.
Package fatbin packs and unpacks CUDA fatbinary containers via libnvfatbin and loads ahead-of-time precompiled fatbinaries with runtime NVRTC fallback.
hotswap
Package cudahotswap checks and replaces CUDA kernels in a retained service.
Package cudahotswap checks and replaces CUDA kernels in a retained service.
hotswap/httpapi
Package httpapi exposes cudahotswap.Service as bounded JSON over HTTP.
Package httpapi exposes cudahotswap.Service as bounded JSON over HTTP.
hotswap/internal/fswatch
Package fswatch watches directory contents, including rename saves.
Package fswatch watches directory contents, including rename saves.
hotswap/stage
Package stage builds and pins CUDA host-glue libraries with the entry ABI int stage(struct stage_ctx *).
Package stage builds and pins CUDA host-glue libraries with the entry ABI int stage(struct stage_ctx *).
kernelhub
Package kernelhub reads GPU kernels published on the Hugging Face kernel hub, so that Go programs can check and launch them.
Package kernelhub reads GPU kernels published on the Hugging Face kernel hub, so that Go programs can check and launch them.
nvjitlink
Package nvjitlink links device PTX, CUBIN, fatbin, and LTO-IR inputs via libnvJitLink.
Package nvjitlink links device PTX, CUBIN, fatbin, and LTO-IR inputs via libnvJitLink.
nvrtc
Package nvrtc compiles CUDA C++ sources via libnvrtc and provides a content-addressed on-disk artifact cache for compiled PTX, CUBIN, and LTO-IR outputs.
Package nvrtc compiles CUDA C++ sources via libnvrtc and provides a content-addressed on-disk artifact cache for compiled PTX, CUBIN, and LTO-IR outputs.
nvvm
Package nvvm lowers NVVM IR modules and compiles them to PTX via libnvvm, including address-space def-use specialization passes.
Package nvvm lowers NVVM IR modules and compiles them to PTX via libnvvm, including address-space def-use specialization passes.
ptxcubin
Package ptxcubin compiles PTX to a CUBIN for one physical target.
Package ptxcubin compiles PTX to a CUBIN for one physical target.
Package cuda provides Idiomatic Go device, context, stream, event, module, memory, kernel launch, data-type, and capability-sentinel primitives over the NVIDIA CUDA Driver API.
Package cuda provides Idiomatic Go device, context, stream, event, module, memory, kernel launch, data-type, and capability-sentinel primitives over the NVIDIA CUDA Driver API.
checkpoint
Package checkpoint coordinates NVIDIA CUDA process checkpointing and restoration using the CUDA Driver Process Checkpoint API.
Package checkpoint coordinates NVIDIA CUDA process checkpointing and restoration using the CUDA Driver Process Checkpoint API.
cublaslt
Package cublaslt provides an owning cuBLASLt matrix multiplication engine.
Package cublaslt provides an owning cuBLASLt matrix multiplication engine.
cudatest
Package cudatest provides owned CUDA device fixtures, toolchain provenance helpers, liveness controls, event-timed benchmarks, write-domain coverage contracts, PTX memory-model litmus tests, and device struct layout checks.
Package cudatest provides owned CUDA device fixtures, toolchain provenance helpers, liveness controls, event-timed benchmarks, write-domain coverage contracts, PTX memory-model litmus tests, and device struct layout checks.
graph
Package graph builds, captures, instantiates, and replays CUDA execution graphs, plans SM-partitioned green contexts, and validates cooperative thread and warpgroup execution groups.
Package graph builds, captures, instantiates, and replays CUDA execution graphs, plans SM-partitioned green contexts, and validates cooperative thread and warpgroup execution groups.
handoff
Package handoff implements graceful binary upgrades for CUDA processes, combining listener file-descriptor inheritance with CUDA Virtual Memory Management (VMM) POSIX file-descriptor slab handoff.
Package handoff implements graceful binary upgrades for CUDA processes, combining listener file-descriptor inheritance with CUDA Virtual Memory Management (VMM) POSIX file-descriptor slab handoff.
hotreload
Package hotreload provides reusable building blocks for live CUDA kernel hot-reload loops: NVRTC compile input validation, a monotonic generation state machine with parity-gated promotion and rollback tracking, line-level diffing, and a self-contained Server-Sent Events (SSE) live view.
Package hotreload provides reusable building blocks for live CUDA kernel hot-reload loops: NVRTC compile input validation, a monotonic generation state machine with parity-gated promotion and rollback tracking, line-level diffing, and a self-contained Server-Sent Events (SSE) live view.
kernel
Package cudakernel defines immutable kernel artifact descriptors and parameter ABI schemas.
Package cudakernel defines immutable kernel artifact descriptors and parameter ABI schemas.
lane
Package lane holds the resources of one execution lane on a CUDA device: a stream, a tracked device memory arena, and the per-lane resources, such as modules and matrix plans, built for that stream.
Package lane holds the resources of one execution lane on a CUDA device: a stream, a tracked device memory arena, and the per-lane resources, such as modules and matrix plans, built for that stream.
lock
Package lock provides cooperative host-wide GPU lock leasing and host-side device allocation leak tracking.
Package lock provides cooperative host-wide GPU lock leasing and host-side device allocation leak tracking.
mmap
Package mmap provides read-only memory-mapped host weight files with CUDA host-memory registration, multi-backend bulk file-to-device loading, and chunked hardware/host tensor decompression.
Package mmap provides read-only memory-mapped host weight files with CUDA host-memory registration, multi-backend bulk file-to-device loading, and chunked hardware/host tensor decompression.
nvtx
Package nvtx provides a pure-Go, zero-cgo implementation of NVIDIA Tools Extension (NVTX v3).
Package nvtx provides a pure-Go, zero-cgo implementation of NVIDIA Tools Extension (NVTX v3).
vmmarena
Package vmmarena provides a per-allocation-handle CUDA Virtual Memory Management (VMM) bump arena, allocation boundary discovery, and segment-bounded memory region coalescing for GPU weight transfers.
Package vmmarena provides a per-allocation-handle CUDA Virtual Memory Management (VMM) bump arena, allocation boundary discovery, and segment-bounded memory region coalescing for GPU weight transfers.
weightipc
Package weightipc shares resident GPU model weights across processes using CUDA Virtual Memory Management (VMM) POSIX file descriptors over AF_UNIX sockets (SCM_RIGHTS) or legacy cudaIpcMemHandle handles.
Package weightipc shares resident GPU model weights across processes using CUDA Virtual Memory Management (VMM) POSIX file descriptors over AF_UNIX sockets (SCM_RIGHTS) or legacy cudaIpcMemHandle handles.
fabric
ncclx
Package cudacollective provides rank-ordered collective communication plans.
Package cudacollective provides rank-ordered collective communication plans.
ncclx/internal/ginprobe
Package ginprobe holds the GIN execution probe of the nccldev native tests: a kernel that moves words between two ranks with ncclGinPut and a signal, and the host code that builds it, launches it on each rank and judges what it reported.
Package ginprobe holds the GIN execution probe of the nccldev native tests: a kernel that moves words between two ranks with ncclGinPut and a signal, and the host code that builds it, launches it on each rank and judges what it reported.
ncclx/ncclboot
Package ncclboot creates one NCCL communicator rank per process, so a communicator can span processes and hosts.
Package ncclboot creates one NCCL communicator rank per process, so a communicator can span processes and hosts.
nvl72
Package nvl72 emits multi-GPU NVLink 5 and NVLink 6 symmetric-memory collective kernels, 72-rank Wide Expert Parallelism (Wide-EP) pipelines, O(1) NVSwitch multicast barriers, and 4-tier GB200 NVL72, GB300 NVL72 and Vera Rubin NVL72 rack and pod planners.
Package nvl72 emits multi-GPU NVLink 5 and NVLink 6 symmetric-memory collective kernels, 72-rank Wide Expert Parallelism (Wide-EP) pipelines, O(1) NVSwitch multicast barriers, and 4-tier GB200 NVL72, GB300 NVL72 and Vera Rubin NVL72 rack and pod planners.
nvlshm
Package nvlshm provides cross-process NVLink shared GPU buffers built on the CUDA virtual memory management (VMM) API, with optional NVSwitch multicast mappings.
Package nvlshm provides cross-process NVLink shared GPU buffers built on the CUDA virtual memory management (VMM) API, with optional NVSwitch multicast mappings.
nvlshm/tcpboot
Package tcpboot provides a minimal TCP implementation of nvlshm.Bootstrap for single-host multi-process jobs and tests.
Package tcpboot provides a minimal TCP implementation of nvlshm.Bootstrap for single-host multi-process jobs and tests.
weightdist
Package weightdist implements peer-to-peer model weight discovery, canonical source identity hashing, fail-closed accelerator compatibility, Grove datacenter topology policy, stateless source selection, metadata registry coordination, and per-worker tensor manifest serving.
Package weightdist implements peer-to-peer model weight discovery, canonical source identity hashing, fail-closed accelerator compatibility, Grove datacenter topology policy, stateless source selection, metadata registry coordination, and per-worker tensor manifest serving.
weightxfer
Package weightxfer coordinates batched one-sided GPU weight transfers over a minimal RMA Engine contract with strict handle-release discipline, post-RDMA device synchronization, region coalescing with rollback retry, and non-latching data-plane health tracking.
Package weightxfer coordinates batched one-sided GPU weight transfers over a minimal RMA Engine contract with strict handle-release discipline, post-RDMA device synchronization, region coalescing with rollback retry, and non-latching data-plane health tracking.
host
bisect
Package bisect can be used by compilers and other programs to serve as a target for the bisect debugging tool.
Package bisect can be used by compilers and other programs to serve as a target for the bisect debugging tool.
cubin
Package cubin reads, edits and writes CUDA ELF images (cubins).
Package cubin reads, edits and writes CUDA ELF images (cubins).
devloop
Package devloop implements a model-agnostic GPU kernel hot-reload dev-loop engine with layered security controls, compare-and-swap (CAS) generation management, redacted audit receipts, a live SSE event bus, append-only txtar session notebooks, and a canonical kernel slot registry.
Package devloop implements a model-agnostic GPU kernel hot-reload dev-loop engine with layered security controls, compare-and-swap (CAS) generation management, redacted audit receipts, a live SSE event bus, append-only txtar session notebooks, and a canonical kernel slot registry.
elf
Package elfinspect reads ELF headers, sections, segments, and symbol tables.
Package elfinspect reads ELF headers, sections, segments, and symbol tables.
equiv
Package equiv proves, with an SMT solver, that a candidate GPU kernel computes bit for bit what a reference kernel computes, for every input a launch contract allows.
Package equiv proves, with an SMT solver, that a candidate GPU kernel computes bit for bit what a reference kernel computes, for every input a launch contract allows.
eval
Package eval provides numerical parity verdicts, floating-point bit sweeps, blind permutation evaluation gates, multi-gate change admission receipts, and determinism auditing inside parity bisection.
Package eval provides numerical parity verdicts, floating-point bit sweeps, blind permutation evaluation gates, multi-gate change admission receipts, and determinism auditing inside parity bisection.
eval/agenttrace
Package agenttrace reads, replays and scores agent workload traces in the replay format of the Evolving Infra benchmarks (the Trie client's schema-v2 traces and schema-v3 tasks, one JSON object per line).
Package agenttrace reads, replays and scores agent workload traces in the replay format of the Evolving Infra benchmarks (the Trie client's schema-v2 traces and schema-v3 tasks, one JSON object per line).
grammar
Package cudagrammar constrains language model generation to JSON that conforms to a schema.
Package cudagrammar constrains language model generation to JSON that conforms to a schema.
otlp
Package otlp provides hardware-neutral OpenTelemetry trace wire encoding, schema validation, span tracing, claim checking, and collector test sinks.
Package otlp provides hardware-neutral OpenTelemetry trace wire encoding, schema validation, span tracing, claim checking, and collector test sinks.
perfetto
Package perfetto implements a streaming wire-format encoder for Perfetto trace files (.pftrace) compatible with the Chrome / Perfetto UI trace viewer.
Package perfetto implements a streaming wire-format encoder for Perfetto trace files (.pftrace) compatible with the Chrome / Perfetto UI trace viewer.
receipt
Package receipt defines the vendor-neutral kernelreceipt/v0 wire format, structural and statistical validation rules, gate definition digests, and re-execution verification engine for checked GPU kernels.
Package receipt defines the vendor-neutral kernelreceipt/v0 wire format, structural and statistical validation rules, gate definition digests, and re-execution verification engine for checked GPU kernels.
safetensors
Package safetensors reads and writes the Hugging Face safetensors format.
Package safetensors reads and writes the Hugging Face safetensors format.
shape
Package cudashape provides checked multi-dimensional tensor shapes, overflow-checked byte size calculation, stride and layout analysis, and bounded symbolic dimension binding with equality and divisibility constraints.
Package cudashape provides checked multi-dimensional tensor shapes, overflow-checked byte size calculation, stride and layout analysis, and bounded symbolic dimension binding with equality and divisibility constraints.
shape/rope
Package rope computes rotary position embedding inverse frequencies the way Hugging Face transformers does.
Package rope computes rotary position embedding inverse frequencies the way Hugging Face transformers does.
sys
Package sys provides read-only file mapping, CLI flag hygiene checks, keyed text redaction, run identifiers, and deterministic virtual and test clocks.
Package sys provides read-only file mapping, CLI flag hygiene checks, keyed text redaction, run identifiers, and deterministic virtual and test clocks.
taskgraph
Package cudataskgraph validates finite task DAGs and tracks epoch-scoped publication and abort state.
Package cudataskgraph validates finite task DAGs and tracks epoch-scoped publication and abort state.
timing
Package timing provides paired ABBA timing, trial receipts, statistical estimators, co-run and goodput harnesses, load and judge profiles, and host quietness checks.
Package timing provides paired ABBA timing, trial receipts, statistical estimators, co-run and goodput harnesses, load and judge profiles, and host quietness checks.
traysup
Package traysup implements a hardened local process supervisor for GPU development pods.
Package traysup implements a hardened local process supervisor for GPU development pods.
txtar
Package txtar implements a pure-stdlib reader, formatter, manifest builder, and versioned in-memory virtual workspace (VFS) for txtar archives.
Package txtar implements a pure-stdlib reader, formatter, manifest builder, and versioned in-memory virtual workspace (VFS) for txtar archives.
weighttransfer
Package weighttransfer transfers independently pinned safetensors weights.
Package weighttransfer transfers independently pinned safetensors weights.
ir
contract
Package contract defines declarative kernel launch contracts, host-side preflight validation, and digest-bound proof certificates for Tile IR kernels.
Package contract defines declarative kernel launch contracts, host-side preflight validation, and digest-bound proof certificates for Tile IR kernels.
egraph
Package egraph implements a lightweight, pure-Go E-Graph (equivalence graph) and equality saturation engine for term rewriting, program optimization, kernel fusion, declarative CUDA Tile C++ generation, and sub-byte quantized inference.
Package egraph implements a lightweight, pure-Go E-Graph (equivalence graph) and equality saturation engine for term rewriting, program optimization, kernel fusion, declarative CUDA Tile C++ generation, and sub-byte quantized inference.
graph
Package graph provides the core tensor computation DAG IR, fluent tensor construction, einsum rank canonicalization, speed-of-light bounds, device function emission, and model architecture fact extraction.
Package graph provides the core tensor computation DAG IR, fluent tensor construction, einsum rank canonicalization, speed-of-light bounds, device function emission, and model architecture fact extraction.
lean
Package lean provides a fail-closed 1-to-1 Tile IR to Lean 4 exporter and formal obligation verifier.
Package lean provides a fail-closed 1-to-1 Tile IR to Lean 4 exporter and formal obligation verifier.
lower
Package lower provides tensor-term lowering, graph fusion, ONNX/StableHLO/TileIR frontends, tensor/expert-parallel megakernel builders, and KernelSpec candidate discovery.
Package lower provides tensor-term lowering, graph fusion, ONNX/StableHLO/TileIR frontends, tensor/expert-parallel megakernel builders, and KernelSpec candidate discovery.
plan
Package plan provides executable DAG plans, multi-backend agreement checking, cross-layer serving step plans, AOT multi-arch bundles, and multi-bucket decode orchestration.
Package plan provides executable DAG plans, multi-backend agreement checking, cross-layer serving step plans, AOT multi-arch bundles, and multi-bucket decode orchestration.
rank
Package rank provides kernel ranking, roofline cost forms, beam/MCTS schedule search, hardware-in-the-loop autotuning, PGO qualification, and precision Pareto search.
Package rank provides kernel ranking, roofline cost forms, beam/MCTS schedule search, hardware-in-the-loop autotuning, PGO qualification, and precision Pareto search.
isa
devicetable
Package cudadevicetable holds GPU device facts that were read from a real device, separated from the ones that were not.
Package cudadevicetable holds GPU device facts that were read from a real device, separated from the ones that were not.
devicetable/instrument
Package instrument says, for each hardware value the planners in this module read, what measures it on the device it describes.
Package instrument says, for each hardware value the planners in this module read, what measures it on the device it describes.
lineinfo
Package lineinfo attributes PTX and SASS instructions back to host and CUDA source lines, wraps cuobjdump/nvdisasm extraction, and inspects compiled kernel resource provenance.
Package lineinfo attributes PTX and SASS instructions back to host and CUDA source lines, wraps cuobjdump/nvdisasm extraction, and inspects compiled kernel resource provenance.
ptx
Package ptx parses and audits NVIDIA PTX modules, parses ptxas -v resource diagnostics, and verifies PTX barrier/fence schedules and recorded-run campaign verdicts.
Package ptx parses and audits NVIDIA PTX modules, parses ptxas -v resource diagnostics, and verifies PTX barrier/fence schedules and recorded-run campaign verdicts.
ptx/ptxaddr
Package ptxaddr reports local PTX address hazards for review.
Package ptxaddr reports local PTX address hazards for review.
ptx/ptxast
Package ptxast is a typed syntax tree for PTX, with a parser and a printer.
Package ptxast is a typed syntax tree for PTX, with a parser and a printer.
ptx/ptxbuild
Package ptxbuild builds PTX modules in Go.
Package ptxbuild builds PTX modules in Go.
ptx/ptxequiv
Package ptxequiv gives PTX kernels a bit-precise semantics for package equiv: Kernel.Effect translates a kernel into the guarded loads and stores of one symbolic thread, and Kernel.Run executes one thread on concrete values to replay counterexamples.
Package ptxequiv gives PTX kernels a bit-precise semantics for package equiv: Kernel.Effect translates a kernel into the guarded loads and stores of one symbolic thread, and Kernel.Run executes one thread on concrete values to replay counterexamples.
ptx/ptxpass
Package ptxpass analyses and rewrites PTX syntax trees from package ptxast.
Package ptxpass analyses and rewrites PTX syntax trees from package ptxast.
ptxsync
Package ptxsync checks conservative subsets of PTX synchronization.
Package ptxsync checks conservative subsets of PTX synchronization.
sass
Package sass parses and analyzes NVIDIA SASS disassemblies, models SM occupancy and memory-hierarchy residency, extracts kernel parameter memory effects, wait bounds, and cubin contracts, audits PTX/LLVM-to-SASS lowering, and checks trace-free bounded SASS equivalence.
Package sass parses and analyzes NVIDIA SASS disassemblies, models SM occupancy and memory-hierarchy residency, extracts kernel parameter memory effects, wait bounds, and cubin contracts, audits PTX/LLVM-to-SASS lowering, and checks trace-free bounded SASS equivalence.
sass/internal/gensasstables command
Command gensasstables compiles extracted SASS instruction tables from a local sassgen cache directory into compact numeric Go tables for package sass.
Command gensasstables compiles extracted SASS instruction tables from a local sassgen cache directory into compact numeric Go tables for package sass.
tileir
Package tileir builds, parses, validates, assembles, and disassembles CUDA Tile IR modules and bytecode.
Package tileir builds, parses, validates, assembles, and disassembles CUDA Tile IR modules and bytecode.
tileir/refmath
Package refmath has the float64 mathematical functions that the Tile IR interpreter and CPU implementations of Tile IR operations compute with as the reference for what a device computes.
Package refmath has the float64 mathematical functions that the Tile IR interpreter and CPU implementations of Tile IR operations compute with as the reference for what a device computes.
tileir/tilebuild
Package tilebuild constructs CUDA Tile IR operations for github.com/tmc/lib/nvidia/x/tileir modules.
Package tilebuild constructs CUDA Tile IR operations for github.com/tmc/lib/nvidia/x/tileir modules.
tileir/tileprintf
Package tileprintf formats what the Tile IR operation print_tko prints: a C printf format whose expressions each print a tile of integers or floats.
Package tileprintf formats what the Tile IR operation print_tko prints: a C printf format whose expressions each print a tile of integers or floats.
nn
attn
Package attn provides scaled dot-product, paged GQA, Multi-head Latent Attention (MLA), split-K decode, Gated DeltaNet, Kimi Delta Attention (KDA), tree attention, manifold-constrained hyper-connections (mHC), attention residuals, context-parallel 3D pipelines, and fused transformer layers.
Package attn provides scaled dot-product, paged GQA, Multi-head Latent Attention (MLA), split-K decode, Gated DeltaNet, Kimi Delta Attention (KDA), tree attention, manifold-constrained hyper-connections (mHC), attention residuals, context-parallel 3D pipelines, and fused transformer layers.
attnres
Package attnres implements attention over residual sources on the host and CUDA.
Package attnres implements attention over residual sources on the host and CUDA.
batch
Package batch provides continuous token-level batch scheduling, RadixAttention prefix KV trees, and speculative batch verification cycles.
Package batch provides continuous token-level batch scheduling, RadixAttention prefix KV trees, and speculative batch verification cycles.
ckpt
Package ckpt provides zero-copy SafeTensors loading, typed checkpoint tensor binding, NVIDIA ModelOpt quantized weight metadata decoding, multi-rank loading strategy chains with mutation-aware rollback, speculative draft publication gating, role-scoped shard selection, and cold-load quantization scale validation.
Package ckpt provides zero-copy SafeTensors loading, typed checkpoint tensor binding, NVIDIA ModelOpt quantized weight metadata decoding, multi-rank loading strategy chains with mutation-aware rollback, speculative draft publication gating, role-scoped shard selection, and cold-load quantization scale validation.
hostemu
Package hostemu runs CUDA kernel source on the host CPU, for testing kernels where no GPU is available.
Package hostemu runs CUDA kernel source on the host CPU, for testing kernels where no GPU is available.
kv
SPDX-License-Identifier: Apache-2.0
SPDX-License-Identifier: Apache-2.0
kv/tier
Package tier implements a three-tier asynchronous KV-cache offloader across GPU VRAM, pinned CPU RAM, and NVMe SSD storage without stalling the decode loop.
Package tier implements a three-tier asynchronous KV-cache offloader across GPU VRAM, pinned CPU RAM, and NVMe SSD storage without stalling the decode loop.
kvquant
Package kvquant implements a pure-Go CPU reference for NVFP4 and MXFP4 KV-cache quantization and single-query decode attention.
Package kvquant implements a pure-Go CPU reference for NVFP4 and MXFP4 KV-cache quantization and single-query decode attention.
logprob
Package logprob records per-token log-probabilities of scored sequences and compares records from different engines or paths.
Package logprob records per-token log-probabilities of scored sequences and compares records from different engines or paths.
moe
Package moe provides Mixture-of-Experts routing, token permutation, grouped GEMM epilogues, NVFP4 expert weight streaming, Engram memory lookup, and Two-Batch Overlap (TBO) expert-parallel kernels.
Package moe provides Mixture-of-Experts routing, token permutation, grouped GEMM epilogues, NVFP4 expert weight streaming, Engram memory lookup, and Two-Batch Overlap (TBO) expert-parallel kernels.
moe/ep
Package ep implements a single-host and loopback Mixture-of-Experts (MoE) expert-parallel router with rank-deduped all-to-all dispatch and combine, capacity-factor overflow policies, and live Expert Parallelism Load Balancer (EPLB) weight shuffling.
Package ep implements a single-host and loopback Mixture-of-Experts (MoE) expert-parallel router with rank-deduped all-to-all dispatch and combine, capacity-factor overflow policies, and live Expert Parallelism Load Balancer (EPLB) weight shuffling.
moe/mxfp8gemm
Package mxfp8gemm multiplies MXFP8 matrices group by group, as a mixture-of-experts layer does, on the tensor cores of sm_100a and sm_103a: each group of rows of x, the tokens routed to one expert, by that expert's weights.
Package mxfp8gemm multiplies MXFP8 matrices group by group, as a mixture-of-experts layer does, on the tensor cores of sm_100a and sm_103a: each group of rows of x, the tokens routed to one expert, by that expert's weights.
quant
Package quant provides block-scaled quantization formats, weight prepacking, and fused normalization/activation quantization CUDA kernels (Q4_0, Q8_0, Q8_1, OCP FP8 E4M3FN, MXFP8, MXFP4, NVFP4 E2M1, UE8M0, Q2_K, IQ2_XXS, U2).
Package quant provides block-scaled quantization formats, weight prepacking, and fused normalization/activation quantization CUDA kernels (Q4_0, Q8_0, Q8_1, OCP FP8 E4M3FN, MXFP8, MXFP4, NVFP4 E2M1, UE8M0, Q2_K, IQ2_XXS, U2).
quant/calibrate
Package calibrate implements post-training NVFP4 and INT4 weight and activation calibration, NVIDIA ModelOpt safetensors export, exact float64 teacher-forced perplexity and KL-divergence evaluation, and VRAM/latency reporting.
Package calibrate implements post-training NVFP4 and INT4 weight and activation calibration, NVIDIA ModelOpt safetensors export, exact float64 teacher-forced perplexity and KL-divergence evaluation, and VRAM/latency reporting.
ref
Package ref provides CPU float64 reference oracles, graph interpreters, differential trace accumulators, and numerical parity verifiers for neural network and tensor kernels under nvidia/x/nn and nvidia/x/ir.
Package ref provides CPU float64 reference oracles, graph interpreters, differential trace accumulators, and numerical parity verifiers for neural network and tensor kernels under nvidia/x/nn and nvidia/x/ir.
sample
Package sample provides GPU token-sampling kernels including argmax, temperature scaling, top-k, top-p (nucleus), min-p, and Philox Gumbel-max.
Package sample provides GPU token-sampling kernels including argmax, temperature scaling, top-k, top-p (nucleus), min-p, and Philox Gumbel-max.
serve
Package serve provides OpenAI-compatible HTTP inference serving and SGLang gRPC worker endpoints.
Package serve provides OpenAI-compatible HTTP inference serving and SGLang gRPC worker endpoints.
serve/cert
Package cert records what has been checked about a serving image and checks the record against what is loaded.
Package cert records what has been checked about a serving image and checks the record against what is loaded.
serve/disagg
Package disagg implements single-host disaggregated prefill and decode serving over loopback framed KV transfers.
Package disagg implements single-host disaggregated prefill and decode serving over loopback framed KV transfers.
shortconv
Package shortconv implements static causal depthwise convolution over BF16 input rows on the host.
Package shortconv implements static causal depthwise convolution over BF16 input rows on the host.
spec
Package spec provides speculative decoding verification, draft-tree mask construction, multi-token prediction (MTP) paged attention, EAGLE-3/MCTS reasoning trees, early-exit confidence probes, and adaptive flight buckets.
Package spec provides speculative decoding verification, draft-tree mask construction, multi-token prediction (MTP) paged attention, EAGLE-3/MCTS reasoning trees, early-exit confidence probes, and adaptive flight buckets.
spec/dfly
Package dfly reads DFly2 drafter checkpoints and checks their compatibility with a paired DeepSeek V4.1 target before device execution.
Package dfly reads DFly2 drafter checkpoints and checks their compatibility with a paired DeepSeek V4.1 target before device execution.
spec/paralleldraft
Package paralleldraft implements the model-agnostic parts of parallel ("diffusion") speculative drafters such as DFlash, DSpark and DNeo.
Package paralleldraft implements the model-agnostic parts of parallel ("diffusion") speculative drafters such as DFlash, DSpark and DNeo.
train
Package train provides reverse-mode autograd, optimizer state update kernels (AdamW, Muon/Newton-Schulz, RL policy updates), block/multi-GPU reductions, sparse-teacher distillation, DualPipe bidirectional schedules, activation rematerialization, and float64 finite-difference gradient checking.
Package train provides reverse-mode autograd, optimizer state update kernels (AdamW, Muon/Newton-Schulz, RL policy updates), block/multi-GPU reductions, sparse-teacher distillation, DualPipe bidirectional schedules, activation rematerialization, and float64 finite-difference gradient checking.
obs
advisefeedback
Package advisefeedback implements canonical, model-agnostic, scorer-attributed profiling advise findings, pre-edit pending outcome tracking, explicit feedback with verifiable evidence gates, Wilson score lower confidence bound ranking with a Bayesian exploration prior, human review queues, and cross-model transfer matrices.
Package advisefeedback implements canonical, model-agnostic, scorer-attributed profiling advise findings, pre-edit pending outcome tracking, explicit feedback with verifiable evidence gates, Wilson score lower confidence bound ranking with a Bayesian exploration prior, human review queues, and cross-model transfer matrices.
bpf
Package bpf provides host eBPF policy budgets, device-side BPF launch records, and host-GPU trace collection.
Package bpf provides host eBPF policy budgets, device-side BPF launch records, and host-GPU trace collection.
cudacallgraph
Package cudacallgraph links host launches, GPU source, and recorded artifacts.
Package cudacallgraph links host launches, GPU source, and recorded artifacts.
cudacallgraph/launchgo
Package launchgo resolves typed Go CUDA launch sites to their available kernel identities.
Package launchgo resolves typed Go CUDA launch sites to their available kernel identities.
cudapmpred
Package cudapmpred provides SASS pm_pred per-instruction event counting and PTX %pm0..%pm7 baseline counter auditing for NVIDIA sm_121a (GB10).
Package cudapmpred provides SASS pm_pred per-instruction event counting and PTX %pm0..%pm7 baseline counter auditing for NVIDIA sm_121a (GB10).
cudapmreg
Package cudapmreg reads the SM performance-monitor special registers SR_PM0..SR_PM7 (and their high halves) on sm_121a, with and without a profiling session, and retargets the reads to the SR_SNAP_PM snapshot bank.
Package cudapmreg reads the SM performance-monitor special registers SR_PM0..SR_PM7 (and their high halves) on sm_121a, with and without a profiling session, and retargets the reads to the SR_SNAP_PM snapshot bank.
cudaprof
Package cudaprof captures, correlates, analyzes, and exports CUDA profiles, traces, OTLP spans, and profile history.
Package cudaprof captures, correlates, analyzes, and exports CUDA profiles, traces, OTLP spans, and profile history.
cudaprof/advise
Package advise evaluates CUDA profiles, hardware counters, and timelines against diagnostic performance rules.
Package advise evaluates CUDA profiles, hardware counters, and timelines against diagnostic performance rules.
cudaprof/advise/advisecheck
Package advisecheck validates advise rule citations, emission sites, and corpus scorecards.
Package advisecheck validates advise rule citations, emission sites, and corpus scorecards.
cudaprof/internal/obsjournaltest
Package journaltest writes synthetic capture journals and captures for tests, so journal readers are exercised without hardware or a real capture.
Package journaltest writes synthetic capture journals and captures for tests, so journal readers are exercised without hardware or a real capture.
cudaprof/iteration
Package iteration segments CUDA timeline streams into deterministic training and serving step iterations.
Package iteration segments CUDA timeline streams into deterministic training and serving step iterations.
cudaprof/limiter
Package limiter says why a kernel launch is slow and what to change.
Package limiter says why a kernel launch is slow and what to change.
cudaprof/overview
Package overview summarizes and compares GPU kernel pprof profiles against regex op-classification rules and renders self-contained, zero-CDN HTML overview reports with inline SVG breakdowns, per-op delta bars, staging memcpy callouts, top kernel tables, and SHA-256 provenance footers.
Package overview summarizes and compares GPU kernel pprof profiles against regex op-classification rules and renders self-contained, zero-CDN HTML overview reports with inline SVG breakdowns, per-op delta bars, staging memcpy callouts, top kernel tables, and SHA-256 provenance footers.
cudaprof/stallmap
Package stallmap attributes a kernel's PC sampling stalls to its SASS instructions and source lines.
Package stallmap attributes a kernel's PC sampling stalls to its SASS instructions and source lines.
cudaprof/timeline
Package timeline reconstructs ordered host and device execution timelines from CUDA capture journals.
Package timeline reconstructs ordered host and device execution timelines from CUDA capture journals.
cudaprof/tracecontract
Package tracecontract defines portable trace binding and artifact contracts shared across CUDA profiling and telemetry pipelines.
Package tracecontract defines portable trace binding and artifact contracts shared across CUDA profiling and telemetry pipelines.
cudas2r
Package cudas2r provides a telemetry oracle for NVIDIA SASS special registers (SR 0..255) accessible via S2R, CS2R, and S2UR instructions on sm_121a (GB10).
Package cudas2r provides a telemetry oracle for NVIDIA SASS special registers (SR 0..255) accessible via S2R, CS2R, and S2UR instructions on sm_121a (GB10).
cudatimer
Package cudatimer measures what the SM timer registers mean: the tick of %globaltimer, whether a split LO/HI read can tear, the SM clock rate against %globaltimer, and whether %globaltimer agrees across SMs.
Package cudatimer measures what the SM timer registers mean: the tick of %globaltimer, whether a split LO/HI read can tear, the SM clock rate against %globaltimer, and whether %globaltimer agrees across SMs.
cuptix
Package cuptix provides CUPTI activity, callback, checkpoint, PC sampling, PM sampling, range profiling, SASS counter, and benchmark collection on NVIDIA GPUs.
Package cuptix provides CUPTI activity, callback, checkpoint, PC sampling, PM sampling, range profiling, SASS counter, and benchmark collection on NVIDIA GPUs.
cuptix/benchfmt
Package benchfmt reads and formats GPU benchmark records in Go benchmark and JSON interchange layouts.
Package benchfmt reads and formats GPU benchmark records in Go benchmark and JSON interchange layouts.
cuptix/dutycycle
Package dutycycle computes active and idle GPU duty-cycle intervals from PM sampling streams.
Package dutycycle computes active and idle GPU duty-cycle intervals from PM sampling streams.
diag
Package diag provides GPU roofline models, kernel census, evidence records, microbenchmark probes, reproducer reduction, sanitizer runners, quarantined candidate launches, and workload diagnostics.
Package diag provides GPU roofline models, kernel census, evidence records, microbenchmark probes, reproducer reduction, sanitizer runners, quarantined candidate launches, and workload diagnostics.
diag/bwprobe
Package bwprobe measures device memory and cache bandwidth ceilings, block shapes, stream/owned mixes, and read/write mixes using calibrated GPU microbenchmarks.
Package bwprobe measures device memory and cache bandwidth ceilings, block shapes, stream/owned mixes, and read/write mixes using calibrated GPU microbenchmarks.
diag/dieprobe
Package dieprobe measures GPU locality-domain topology, access latency, bandwidth, allocation cost, and compute binding.
Package dieprobe measures GPU locality-domain topology, access latency, bandwidth, allocation cost, and compute binding.
diag/errbound
Package errbound checks kernel outputs against error bounds derived from a reference computation graph at a declared precision.
Package errbound checks kernel outputs against error bounds derived from a reference computation graph at a declared precision.
diag/errbound/errboundcuda
Package errboundcuda runs CUDA kernels as errbound.Kernel values, on a GPU through NVRTC or on the host CPU through cudahostemu, so that errbound.Check can certify them.
Package errboundcuda runs CUDA kernels as errbound.Kernel values, on a GPU through NVRTC or on the host CPU through cudahostemu, so that errbound.Check can certify them.
diag/errbound/plant
Package plant holds a corpus of CUDA kernels that cheat kernel correctness checks, with honest controls, for testing checkers such as github.com/tmc/lib/nvidia/x/obs/diag/errbound.
Package plant holds a corpus of CUDA kernels that cheat kernel correctness checks, with honest controls, for testing checkers such as github.com/tmc/lib/nvidia/x/obs/diag/errbound.
diag/gemmrate
Package gemmrate measures the dense tensor-core GEMM rate a device achieves on one shape.
Package gemmrate measures the dense tensor-core GEMM rate a device achieves on one shape.
diag/hotcold
Package hotcold measures what one SASS instruction costs by timing a kernel against a copy of itself with that instruction replaced by a NOP.
Package hotcold measures what one SASS instruction costs by timing a kernel against a copy of itself with that instruction replaced by a NOP.
diag/icacheprobe
Package icacheprobe measures GPU instruction-cache capacity and miss boundaries across loop footprints.
Package icacheprobe measures GPU instruction-cache capacity and miss boundaries across loop footprints.
diag/kernelcheck
Package kernelcheck checks compiled NVIDIA CUBIN artifacts against their static ELF/SASS launch contracts, IEEE-754 float32 numerical parity, and CUDA-event interleaved paired timing, producing and verifying kernelreceipt/v0 receipts.
Package kernelcheck checks compiled NVIDIA CUBIN artifacts against their static ELF/SASS launch contracts, IEEE-754 float32 numerical parity, and CUDA-event interleaved paired timing, producing and verifying kernelreceipt/v0 receipts.
diag/kernelcheck/launchplan
Package launchplan captures a GPU program's launches as a declarative plan and replays the plan without the program.
Package launchplan captures a GPU program's launches as a declarative plan and replays the plan without the program.
diag/kernelcheck/launchplan/internal/lptool command
Lptool builds, compares, replays and mutates launch-plan bundles.
Lptool builds, compares, replays and mutates launch-plan bundles.
diag/launchprobe
Package launchprobe measures CUDA kernel launch latency and queue overhead.
Package launchprobe measures CUDA kernel launch latency and queue overhead.
diag/mioprobe
Package mioprobe measures whether reading a special register costs more when many warps on one SM read special registers at once.
Package mioprobe measures whether reading a special register costs more when many warps on one SM read special registers at once.
diag/obsevidence
Package obsevidence holds portable measurement evidence records and claim verdicts re-exported by x/obs/diag and x/obs/diag/obsmodel.
Package obsevidence holds portable measurement evidence records and claim verdicts re-exported by x/obs/diag and x/obs/diag/obsmodel.
diag/obsmodel
Package obsmodel provides hardware-neutral GPU roofline ceiling models and kernel execution census analysis.
Package obsmodel provides hardware-neutral GPU roofline ceiling models and kernel execution census analysis.
diag/peerprobe
Package peerprobe times the hop latency between two GPUs through peer-mapped memory.
Package peerprobe times the hop latency between two GPUs through peer-mapped memory.
diag/prefetchprobe
Package prefetchprobe measures L2 and global memory prefetch latency and SM rank behavior.
Package prefetchprobe measures L2 and global memory prefetch latency and SM rank behavior.
diag/sfuprobe
Package sfuprobe measures the throughput of the special function unit (MUFU) against FFMA on one GPU, in operations per SM per clock.
Package sfuprobe measures the throughput of the special function unit (MUFU) against FFMA on one GPU, in operations per SM per clock.
diag/smtopology
Package smtopology probes streaming multiprocessor cluster and cache topology on NVIDIA GPUs.
Package smtopology probes streaming multiprocessor cluster and cache topology on NVIDIA GPUs.
diag/streamread
Package streamread measures sustained device global-memory read bandwidth across configurable streaming access patterns.
Package streamread measures sustained device global-memory read bandwidth across configurable streaming access patterns.
diag/syncprobe
Package syncprobe measures device, stream, and event synchronization latency.
Package syncprobe measures device, stream, and event synchronization latency.
iket
Package iket provides intra-kernel execution tracing (IKET), device ring buffers, CUDA phase markers, and GPU flight-recorder bundles.
Package iket provides intra-kernel execution tracing (IKET), device ring buffers, CUDA phase markers, and GPU flight-recorder bundles.
iket/ikettrace
Package obsiket implements the core in-kernel event trace and phase analysis layer.
Package obsiket implements the core in-kernel event trace and phase analysis layer.
iket/ring
Package ring decodes device-side in-kernel %globaltimer event ring buffers.
Package ring decodes device-side in-kernel %globaltimer event ring buffers.
internal/obsbpfpolicy
Package obsbpfpolicy holds pure-Go eBPF policy and budget definitions re-exported by x/obs/bpf.
Package obsbpfpolicy holds pure-Go eBPF policy and budget definitions re-exported by x/obs/bpf.
internal/obsevidencebind
Package obsevidencebind binds kernel artifacts and cache keys to evidence identities for x/obs/cudaprof and x/obs/telemetry.
Package obsevidencebind binds kernel artifacts and cache keys to evidence identities for x/obs/cudaprof and x/obs/telemetry.
internal/obsotlp
Package obsotlp holds OTLP span schema and trace encoders re-exported by x/obs/cudaprof.
Package obsotlp holds OTLP span schema and trace encoders re-exported by x/obs/cudaprof.
internal/obsprobe
Package obsprobe holds binary probe event decoders re-exported by x/obs/diag.
Package obsprobe holds binary probe event decoders re-exported by x/obs/diag.
internal/obsprofcore
Package obsprofcore holds core pprof, capture bundle, stack journal, and Do correlation primitives re-exported by x/obs/cudaprof.
Package obsprofcore holds core pprof, capture bundle, stack journal, and Do correlation primitives re-exported by x/obs/cudaprof.
internal/obsworkload
Package obsworkload holds host-device workload correlation and activity join primitives re-exported by x/obs/diag.
Package obsworkload holds host-device workload correlation and activity join primitives re-exported by x/obs/diag.
racedet
Package racedet reports shared memory data races in CUDA kernels in one form, whichever engine found them.
Package racedet reports shared memory data races in CUDA kernels in one form, whichever engine found them.
sanpatch
Package sanpatch provides an in-process CUDA Compute Sanitizer device-patching oracle built on the Compute Sanitizer public API.
Package sanpatch provides an in-process CUDA Compute Sanitizer device-patching oracle built on the Compute Sanitizer public API.
straggler
Package straggler detects slow and intermittent GPU stragglers across single and multi-node clusters without PyTorch or cgo.
Package straggler detects slow and intermittent GPU stragglers across single and multi-node clusters without PyTorch or cgo.
telemetry
Package telemetry provides GPU fleet telemetry, NVML/DCGM/nvidia-smi readers, XID error catalogs and log parsers, and Nsight Compute/Systems importers.
Package telemetry provides GPU fleet telemetry, NVML/DCGM/nvidia-smi readers, XID error catalogs and log parsers, and Nsight Compute/Systems importers.
tracedb
Package tracedb defines a zero-dependency interface, schema, and read-only SQL policy for storing and querying GPU traces and telemetry-review sessions in ClickHouse-compatible engines such as chDB.
Package tracedb defines a zero-dependency interface, schema, and read-only SQL policy for storing and querying GPU traces and telemetry-review sessions in ClickHouse-compatible engines such as chDB.
tracedb/chdbengine
Package chdbengine provides an isolated, zero-cgo purego adapter for libchdb (in-process ClickHouse) with pinned SHA-256 library verification, dedicated restricted ClickHouse RBAC user isolation (`tracedb_ro`), ClickHouse C++ AST classification, and a hard CUDA process isolation guard.
Package chdbengine provides an isolated, zero-cgo purego adapter for libchdb (in-process ClickHouse) with pinned SHA-256 library verification, dedicated restricted ClickHouse RBAC user isolation (`tracedb_ro`), ClickHouse C++ AST classification, and a hard CUDA process isolation guard.
tracedb/localengine
Package localengine provides a strictly fail-closed, zero-cgo, pure-Go fallback tracedb.Engine backed by JSONL files (or in-memory storage).
Package localengine provides a strictly fail-closed, zero-cgo, pure-Go fallback tracedb.Engine backed by JSONL files (or in-memory storage).
tile
layout
Package layout provides checked physical tile layouts, CuTe layout algebra, Tensor Memory Accelerator (TMA) transfer and multicast planning, Blackwell Tensor Memory (TMEM) allocation protocols, thread-block-cluster distributed shared-memory emitters, per-block shared-memory planning, cooperative block primitives, and static/dynamic mbarrier pipeline verification.
Package layout provides checked physical tile layouts, CuTe layout algebra, Tensor Memory Accelerator (TMA) transfer and multicast planning, Blackwell Tensor Memory (TMEM) allocation protocols, thread-block-cluster distributed shared-memory emitters, per-block shared-memory planning, cooperative block primitives, and static/dynamic mbarrier pipeline verification.
mega
Package mega schedules persistent CUDA megakernels, device-driven step loops, programmatic dependent launches (PDL), register redistribution protocols, bounded device waits, and step-descriptor replay logs.
Package mega schedules persistent CUDA megakernels, device-driven step loops, programmatic dependent launches (PDL), register redistribution protocols, bounded device waits, and step-descriptor replay logs.
prefill
Package prefill lowers block-FP8 prefill projections to Tile IR.
Package prefill lowers block-FP8 prefill projections to Tile IR.
tcgen05
Package tcgen05 implements Blackwell (sm_100a, sm_103a, sm_100f, sm_103f) and Vera Rubin (sm_107a, sm_107f) Tensor Memory (TMEM) Fifth- and Sixth-Generation Tensor Core (tcgen05 / PTX ISA 9.4), FlashAttention-4 paged and absorbed Multi-head Latent Attention (MLA), 2:4 structured sparsity and spcompress, and Cluster Launch Control (CLC) kernel emitters, hardware descriptors, and GB200/GB300/VR200 residency planners.
Package tcgen05 implements Blackwell (sm_100a, sm_103a, sm_100f, sm_103f) and Vera Rubin (sm_107a, sm_107f) Tensor Memory (TMEM) Fifth- and Sixth-Generation Tensor Core (tcgen05 / PTX ISA 9.4), FlashAttention-4 paged and absorbed Multi-head Latent Attention (MLA), 2:4 structured sparsity and spcompress, and Cluster Launch Control (CLC) kernel emitters, hardware descriptors, and GB200/GB300/VR200 residency planners.
tcgen05/mmaarith
Package mmaarith models NVIDIA Blackwell tcgen05 dot and accumulator arithmetic with integers.
Package mmaarith models NVIDIA Blackwell tcgen05 dot and accumulator arithmetic with integers.
tcgen05/mmaarith/cmd/sm103probe command
Command sm103probe is a standalone GB300 (sm_103a) / B200 (sm_100a) hardware validation & differential fuzzer CLI for tcgen05 MMA reference arithmetic.
Command sm103probe is a standalone GB300 (sm_103a) / B200 (sm_100a) hardware validation & differential fuzzer CLI for tcgen05 MMA reference arithmetic.

Jump to

Keyboard shortcuts

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