krn.py
krn is a typed Python kernel language for writing fast CPU and GPU code that remains easy to read and extend. Prove low-level performance and Pythonic contracts through small reusable libraries before expanding languages or hardware; Python comes first, owned runners through M4, and each milestone ends with five guides and cumulative evidence.
⬜0M0 Development system
0.0.1 candidate: establish a reviewable source baseline and a small verified package; release remains approval-gated.
⬜0.1Development system
✅0.1.2Set up source history
Create the authorized initial local commits after scoped checks, then establish jj colocated Git workflows without automatic commits or pushes; record source identities before parallel work.
Read [42]
✅0.1.3Task records
Install the task, blocker and handoff templates with one writer per file and a coordinator-owned dependency index.
✅0.1.4Source refresh
Require each implementation task to verify its exact vendor docs, upstream source revision, license and relevant new papers before changing code.
✅0.1.5Initial baseline
Recorded 41 focused local test passes and the existing 12 Ruff findings, two formatting failures, 13 ty diagnostics and 12 pyrefly errors without claiming a clean release or full coverage.
⬜0.1.6Static repairs
Resolve the recorded asyncio/runtime lint findings and two formatting failures without changing semantics merely to satisfy a checker.
⬜0.1.7Typing repairs
Reconcile tuple-based CUDA call arguments and the Metal waiter type before claiming zero ty or pyrefly diagnostics.
⬜0.1.8Coverage gate
Replace the unqualified 100% acceptance gate with scoped line/branch reporting and explicit missing behavioral or hardware evidence.
⬜0.1.9Source provenanceContract
Record the exact upstream file license before placing competitor material in an agent task and exclude MAX-licensed internals as input for generating a MAX replacement or reimplementation.
⬜0.1.9.1Permitted contextContract
Distinguish separately Apache-licensed components from MAX-licensed components and use documented integration APIs without claiming that permission to analyze MAX also permits reimplementing it from restricted inputs.
⬜0.2Installation source safety and 0.0.1
Gate the small verified CPU/CUDA/Metal subset, not every later milestone. Document exclusions explicitly.
✅0.2.1Small first releaseDecision
Ship 0.0.1 as a small development release containing only verified CPU/CUDA/Metal paths and explicit limitations; complete the reliable-alpha contract in 0.0.2 before expanding support claims.
⬜0.2.2Keep installation simple
Verify isolated pip and uv installs from a locally built source package through first JIT execution without distributing precompiled krn kernel binaries; document external drivers, SDKs, native dependencies and offline cache requirements honestly.
⬜0.2.2.1CPU-only installation
No GPU dependency required for import and CPU use; missing optional tools produce actionable diagnostics.
⬜0.2.2.2Backend extras
Verify prerequisites, first JIT execution and cache reuse for the candidate’s declared CUDA and Metal paths, documenting excluded targets explicitly.
⬜0.2.3Versioned public contract
Document the M0 candidate’s frozen verified subset and installation requirements, leaving automated cross-target evidence tooling to M1.
⬜0.2.4Publish only when authorized
Publish only reviewed checksummed artifacts through authenticated owner credentials or trusted publishing, preserving separate PyPI, crates.io and npm receipts and never treating packaging as publication.
Read [43]
⬜0.2.5Candidate verification
Build the candidate source distribution and pure Python wheel. Install them in clean CPU, CUDA and Metal environments; run the frozen release subset with exact versions and target receipts. Verify optional dependencies, JIT tool discovery, diagnostics and offline-cache behavior. Block only on the candidate's declared requirements, not later experimental features.
⬜0.2.7Language startersContract
Prepare independently useful 0.0.1 host utilities without claiming that Rust or JavaScript already compiles kernels.
✅0.2.7.1Rust sizingContract
Provide checked no_std ceildiv and align_up over u64 with explicit zero-divisor and overflow errors, then verify the packaged crate.
✅0.2.7.2JavaScript sizingContract
Provide typed ESM ceildiv and align_up over nonnegative safe integers with exact intermediates and explicit RangeError failures, then verify the installed tarball.
✅0.2.7.3Python artifactVerify
Built allowlisted wheel and source artifacts and verified separate uv and pip installations with an affine CPU kernel on local Arm64; this packaging check does not certify all backends or clear the remaining release gates.
⛔0.2.7.4Registry accessVerify
Authenticate the owner outside chat and verify account permissions for krn on each registry before publishing the reviewed artifact checksums. No registry credentials were present during preparation; public API 404 responses do not prove availability.
⬜0.2.7.5Registry receiptVerify
Record each successful registry version and install its public artifact before marking the name acquired or the release published.
⬜0.3Five examples
⬜0.3.1Clean install
Install the locally built package in isolated pip and uv environments and run one verified typed add kernel.
⬜0.3.1.1Implement
Install the locally built package in isolated pip and uv environments and run one verified typed add kernel.
⬜0.3.1.2Acceptance
Record dependency resolution and JIT prerequisites; missing compiler or driver must produce an actionable error.
⬜0.3.1.3Guide
Publish a self-contained guide at guides/m0/#example-1 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜0.3.2Source identity
Reproduce one CPU example from the initial local commit and a recorded environment lock.
⬜0.3.2.1Implement
Reproduce one CPU example from the initial local commit and a recorded environment lock.
⬜0.3.2.2Acceptance
Match source identity and output without implying remote GPUs were tested.
⬜0.3.2.3Guide
Publish a self-contained guide at guides/m0/#example-2 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜0.3.3Target discovery
List CPU, Metal and available CUDA target capabilities through the existing Python API.
⬜0.3.3.1Implement
List CPU, Metal and available CUDA target capabilities through the existing Python API.
⬜0.3.3.2Acceptance
Distinguish absent driver, discovered hardware, compilation support and executed support.
⬜0.3.3.3Guide
Publish a self-contained guide at guides/m0/#example-3 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜0.3.4Useful failure
Call a documented unsupported dtype or feature and render its exception with and without Rich.
⬜0.3.4.1Implement
Call a documented unsupported dtype or feature and render its exception with and without Rich.
⬜0.3.4.2Acceptance
The message identifies operation, target, reason and a valid alternative without losing the original exception.
⬜0.3.4.3Guide
Publish a self-contained guide at guides/m0/#example-4 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜0.3.5Evidence handoff
Export one real example receipt into the independent website build.
⬜0.3.5.1Implement
Export one real example receipt into the independent website build.
⬜0.3.5.2Acceptance
A stale or missing receipt remains unverified and cannot create a green support cell.
⬜0.3.5.3Guide
Publish a self-contained guide at guides/m0/#example-5 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜0.4Cumulative verification
⬜0.4.1Example replay
Run every admitted example from M0 through M0 and report compile, execution, numerical and refusal outcomes separately for each required target.
⬜0.4.2Meaningful tests
Review missing branches and independent oracles, expand Hypothesis and regression cases around observed risks, and remove redundant tests without hiding uncovered behavior.
⬜0.4.3Coverage evidence
Publish line and branch coverage with denominator, exclusions, target and unexecuted paths, never treating 100% host coverage as complete feature or hardware support.
⬜0.4.4Documentation evidence
Build all guides and links, execute available code examples, and attach versioned receipts before upgrading planned or experimental claims.
⬜1M1 Contracts
0.0.2 candidate: make the reliable-alpha contracts executable on admitted CPU/CUDA/Metal paths; unverified capabilities remain explicit.
⬜1.1krn.configure — Numerical requirements
Owner discussion before changes to arithmetic or defaults.
⬜1.1.1Define the promisesDecision
Keep arithmetic semantics, accuracy, reproducibility and implementation strategy separate.
# Same float64 operands; only the addition order changes. a, b, c = 1e16, -1e16, 1.0 left = (a + b) + c # 1.0 right = a + (b + c) # 0.0✅1.1.1.1Native defaultDecision
Owner decision. Explicit repeatable and portable requests must be satisfied or refused; neither promises every device or shape.
⬜1.1.1.2Native policy
Proposed default for bulk operations: select a target implementation within declared dtype, rounding and accuracy constraints. Native does not mean arbitrary fast math or silent precision loss.
⬜1.1.1.3Repeatable policy
Require identical output bits for identical inputs and a declared execution envelope: algorithm, target, compiler/driver/library versions, workspace, streams and launch settings.
⬜1.1.1.4Portable policy
Require identical bits across a named target/operation/dtype set. An unmet request raises an explained error; “best effort” is a diagnostic result, not a guarantee.
⬜1.1.1.5Name allowed changes
Treat batching, layout, tiling, partitioning and software upgrades as separate invariance claims. Preserve the same logical inputs/output; changing the reduction length generally changes the problem.
⬜1.1.1.5.1Batch case
Compare one row alone and embedded in a larger batch; preserve its operands, reduction dimension and output mapping.
⬜1.1.1.5.2Padding case
Mask extra lanes by validity. Specify NaNs and signed zero; do not assume adding numeric zero preserves every bit.
⬜1.1.2Keep scalar meaning explicit
Preserve written evaluation order and explicit FMA. Settle integer overflow, signed floor division/remainder, oversized shifts, NaNs, signed zero and subnormals.
⬜1.1.2.1Empty mean
Raise ZeroDivisionError before launch when validated host metadata proves a zero reduction extent, without waiting for device-side exception transport.
⬜1.1.2.2Dynamic empty mean
Report a dynamically discovered empty row through the accepted checked-error path at synchronization with its logical row, rather than silently storing NaN.
⬜1.1.2.3Division and shifts
Current integer division by zero and oversized shifts return zero. Resolve this conflict with the Pythonic goal before documenting them as stable.
⬜1.1.2.4FMA boundary
One rounding is not exact real arithmetic. Matching bits also requires equal formats, rounding and special-value behavior. Do not claim unconditional cross-target FMA equality.
⬜1.1.2.5Accuracy data
Record exact/ULP/relative/absolute or algorithm-specific bounds with input domains. Distinguish a guarantee, vendor-tested limit and our measured sample.
⬜1.1.2.5.2Measure independently
Use high-precision or interval references with correct input conversion, exponent range and subnormal treatment. MPFR precision alone does not reproduce an IEEE format.
Read [60]
⬜1.1.2.5.3Fix acceptance criteria
The current expected failures search documentation for a finite-bound pattern. Replace that premise with structured contract validation and separate numerical cases; never promote a sampled maximum to a universal guarantee.
⬜1.1.2.6Subnormal handling
Record input and output flushing per operation/target. A portable requirement needs a preserving implementation or refusal; a native limitation needs a callout.
⬜1.1.3Assign responsibility
Kernel design chooses a legal algorithm; compiler and runtime must preserve the requested contract.
⬜1.1.3.1Compiler contract
Represent accumulation dtype, contraction/reassociation permission, rounding/storage boundaries and required invariance in IR and inspection output. Reject contradictory options.
⬜1.1.3.2Dispatch contract
Filter candidates by the requested contract before tuning. Include algorithm and numerical policy in cache keys and benchmark records; invalidate incompatible cached choices.
⬜1.1.3.3Opaque instructions
Tensor-core and vendor-library internals may be only partly specified. Record documented versus recovered behavior; do not infer portable equality from the instruction name.
⬜1.1.3.4Oracle boundaries
The emulator defines language semantics; a target execution model may replay a known tree and rounding sequence. Native bulk operations need contract-aware comparison, not equality to one universal tree. Use independent accuracy checks so emulator/backend agreement cannot hide a shared bug.
⬜1.1.3.4.1Bitwise cases
Require exact bits for specified scalar/conversion semantics and admitted reproducible operations; spell out NaN payload and signed-zero treatment.
⬜1.1.3.4.2Native bulk cases
Check validity, special values and declared error or residual requirements. Recover or inspect the chosen schedule when possible; avoid one loose global tolerance.
⬜1.1.4Configure reproducibility
Use flat keyword settings. Native is the decided default; repeatable and portable are explicit requirements with a declared scope. Unsupported requirements fail. Shape invariance is independent of reproducibility and accuracy.
# Planned API — not available yet. with krn.configure( reproducibility=krn.Reproducibility.REPEATABLE, invariance=krn.Invariance.TILING | krn.Invariance.PARTITION, ): result = operation(inputs)⬜1.1.4.1Flat settings
Use
StrEnumfor one choice,Flagfor independent requirements, and booleans for independent switches. UseIntFlagonly where integer-mask interchange is needed; reject unknown bits. Python has no built-inStrFlag. Keep accumulator dtype on the operation. No global fast-math switch.Read [92]
⬜1.1.4.2Freeze each launch
Use existing scoped settings. Freeze the resolved contract before compilation/launch; include it in dispatch, autotuning and graph-cache identities. Async tasks retain their snapshot.
⬜1.1.4.3Resolve requirements
Scopes override defaults; an explicit operation requirement cannot be silently weakened. Reject incompatible requirements. Report the realized algorithm and guarantee.
⬜1.1.4.4Bound repeatability
Same input bits, shape and declared device/software/algorithm envelope. Pin workspace, tunings, stream assumptions and seeds; revalidate upgrades.
⬜1.1.4.5Bound portability
Name operations, dtypes, targets and invariances. A fixed tree is insufficient when FMA, subnormals, math approximations or hardware accumulation differ. Unsupported requests raise TargetError.
⬜1.1.4.6Test useful promises
Perturb one factor at a time.
⬜1.1.4.6.1Elementwise add
Portable where rounding, subnormals and special values agree. Fused expressions need a contraction rule.
⬜1.1.4.6.2Reduction
Repeatability may pin a tree. Tile/partition invariance needs a canonical logical tree or reproducible accumulator. Padding is not always neutral for NaNs or signed zero.
⬜1.1.4.6.3Tensor-core GEMM
Native and fixed-envelope repeatability are useful. Portable bits may require a slower composed algorithm; opaque hardware steps are not a cross-generation guarantee.
⬜1.1.4.6.4Atomic scatter
A seed does not fix floating addition order. Use ordered segmentation or reproducible accumulation. Racing non-atomic writes remain invalid.
⬜1.1.4.6.5Math and solvers
Matching vendor accuracy does not imply equal bits. Portable transcendental functions need a shared algorithm. Repeated eigenvalues require residual/subspace comparisons, not equal eigenvectors.
⬜1.1.5Defaults and result type
Retain the agreed f16/bf16 to f32, f64 to f64 and int8 to i32 defaults while leaving f32 product precision and the relation between accumulator and result dtype pending the decisions below.
⬜1.1.7Result dtypeDecision
Decision pending: should sum(dtype=T) select both accumulator and result type while dot(acc=T) controls accumulation separately from its result type?
Read [197]
⬜1.1.9Tiling invarianceVerify
Compare the same logical operation under different launch tilings only when the requested reproducibility subset promises that invariance.
⬜1.1.10Layout promiseContract
Define which layout changes preserve the requested numerical guarantee and require an explicit unsupported-view error before positive-strided execution is admitted.
⬜1.2krn.types — Language and module boundaries
Numerical contract agreed; changes stay before release where possible.
⬜1.2.1Agree on module ownershipDecision
Proposed destinations, not existing imports. Keep common imports short; internal file depth need not create public concepts.
⬜1.2.1.1krn.types
Descriptors live in
krn.types; retainkrn.Tas the concise type namespace. Internal number/string/tensor modules organize implementation without multiplying equivalent public constructors.⬜1.2.1.1.1numbers.integer
Signed/unsigned widths, conversions, overflow and packed lanes.
⬜1.2.1.1.2numbers.floating
Float, complex and low-precision descriptors; rounding and accumulator constraints. Storage does not imply arithmetic support.
⬜1.2.1.1.3string
Define public text and encoded-buffer types in krn.types.string with code-point semantics separated from code-unit storage and explicit grapheme operations.
⬜1.2.1.1.4tensor
Shape, strides, memory space, mutability and ownership; distinguish host handles from register/shared values.
⬜1.2.1.2krn.math and krn.fast.math
Same operation vocabulary; precise versus approximate semantics documented per operation. Determinism is independent.
⬜1.2.1.3krn.memory krn.groups krn.atomics
Proposed homes for movement, collectives and atomic operations. Reconcile existing exports before adding aliases.
⬜1.2.1.4krn.runtime
Keep the existing
krn.profilefacade. Separate runtime ownership,krn.asyncio, hardware discovery and profiling behind small public contracts.⬜1.2.1.5krn.linalg krn.quantization krn.unicode
Algorithms compose the same frontend. Reconcile krn.lib.linalg and root linalg; avoid competing solver APIs. Dense, sparse, solvers and contour can be submodules.
⬜1.2.1.6Retrieval and serving
Keep retrieval and serving adapters outside core imports; use separate packages when dependencies or release cadence justify it, and let later Rust and JavaScript bindings reuse the compiler/runtime behind a narrow ABI where practical.
⬜1.2.1.7krn._internals
Private IR, lowering, caches and vendor glue. Public docs teach contracts, not backend plumbing.
⬜1.2.2Remove failing exports
Build or withhold requires, intrinsic, chunks and full. Leave explicit tasks for each withheld name; sketches must not import as working API. Explicitly track the currently incomplete from_dlpack export and keep its implementation gated on M5 exchange and ownership acceptance.
⬜1.2.3Set module boundaries
Resolve compiler/facts/lib/runtime public homes, keep internals private and make krn.debug importable. Complete public summaries and executable examples.
⬜1.2.4Unify array meaning
Specify dtype, logical shape, strides/layout, address space, aliasing, mutability and ownership.
⬜1.2.4.1Shape checking
Test fixed/dynamic/variadic dimensions with both type checkers; retain Vector/Matrix aliases. Document what static typing cannot prove. The earlier Tensor[T.f32, ("n",)] notation was illustrative; accept no symbolic-shape syntax until both type checkers and capture agree.
⬜1.2.4.2View cases
Validate contiguous view ownership and aliases in M1 and explicitly reject unsupported strides, leaving positive-strided execution and no-copy evidence to M2.
⬜1.2.4.3Data launchers
Freeze common launcher shape, ownership and error contracts in M1, retaining existing adapters while scheduling new string and sparse implementations in M6 and M7.
⬜1.2.4.4Logical storage types
Carry packed/narrow dtype metadata through host upload, device arguments and result conversion; uint32 storage alone is not a packed logical type.
⬜1.2.5Complete useful Python gradually
Each construct gets capture, lowering, oracle and runnable examples—not just parser acceptance.
⬜1.2.5.1Control flow
Finish loop else, correct break/continue behavior, short-circuit evaluation and pattern matching. Audit helper evaluation and loop-condition recomputation.
⬜1.2.5.1.1Loop else
Implement loop else with Python break and exhaustion semantics.
⬜1.2.5.1.2Loop exits
Implement break and continue with correct nested-loop destinations and state updates.
⬜1.2.5.1.3Short circuits
Preserve conditional evaluation and side effects for and/or expressions.
⬜1.2.5.1.4Pattern matching
Admit typed supported pattern forms and explicitly reject unsupported capture patterns.
⬜1.2.5.1.5Loop conditions
Recompute runtime loop conditions after each iteration without reusing stale captured values.
⬜1.2.5.2Values and helpers
Support tuple/struct returns, unpacking, views, bounded comprehensions and static closures while distinguishing launch-planned result allocation from unsupported unbounded per-thread allocation.
⬜1.2.5.3Constants and mutation
Keep constexpr distinct from runtime int; resolve -inf, temporary in-place operations and generic struct configuration.
⬜1.2.5.4Number protocols
Register device numeric ABCs without permissive int/float inheritance; preserve type mismatch diagnostics and explicit conversion.
⬜1.2.5.5Escape hatch
Design intrinsic registration and per-target lowering with typed operands, effects and honest capability checks. Add device async roles only after the separate execution model is settled.
⬜1.2.5.6Framework contract auditResearch
Use PyTorch and JAX to discover edge cases while choosing krn semantics explicitly.
⬜1.2.5.6.2Broadcast boundariesContract
Define scalar, zero-length and singleton broadcasting and reject in-place or out writes that require a different destination shape.
Read [176]
⬜1.2.5.6.3Capture effectsContract
Specify whether each effect runs during capture or device execution and reject unsupported host mutation or mutable captured constants instead of allowing cache-dependent behavior.
Read [174]
⬜1.2.5.6.4Index failuresContract
Define masked and unmasked bounds behavior explicitly and preserve requested Python-style errors rather than silently copying JAX clamp or dropped-update semantics.
Read [174]
⬜1.2.6Project scope
Support Python 3.14 and 3.14t on admitted macOS/Linux configurations, adding each newer released minor after compatibility checks while retaining private internals, frozen values and no CLI.
⬜1.2.7Deferred annotations
Resolve deferred annotations at the capture or specialization boundary, preserving forward references and source-mapped failures for unresolved names.
Read [147]
⬜1.2.8Standard modules
Inventory krn.itertools, krn.functools, krn.operator, krn.hashlib and collection exports, retaining implemented names and recording unsupported kernel forms.
⬜1.2.9Public exportsContract
Define public types and exceptions in public modules and keep compiler, runtime and Unicode implementation helpers in krn._internals without re-exporting private definitions.
⬜1.2.9.1Export manifestContract
List supported root and submodule exports with defining modules and resolve their annotations without requiring private imports.
⬜1.2.9.2External clientsVerify
Compile documentation and external-client examples using only the allowlisted public API and reject accidental private or legacy implementation imports.
⬜1.2.9.3Incomplete exportsVerify
Classify exports as working host API, captured intrinsic with a lowering, or placeholder before withholding or explicitly refusing incomplete names such as from_dlpack.
⬜1.2.9.4DLPack placeholder
Replace the misleading working-zero-copy claim for from_dlpack with a consistent explicit unsupported policy and one public behavior check, leaving exchange implementation to M5.
Read [40]
⬜1.3Compiler boundaries
Review the existing compiler before adding new execution models; retain the public Python contract.
⬜1.3.3Bounded comparison
Compare one elementwise, reduction and matrix kernel through a candidate path. Measure cold JIT, dependency size, diagnostics, semantic fidelity and steady-state performance before adopting it.
⬜1.3.4Integration boundary
Record what krn owns, what an upstream compiler supplies and how versions are tested. Prefer one useful adapter over a wholesale rewrite; a lowering pipeline does not automatically design parallel algorithms.
Read [61]
✅1.3.5Compiler and execution
Typed capture, automatic geometry, emulator and C/CUDA/Metal execution; HIP generation/compile checks; matrix lowering and explained refusals.
⬜1.3.6Language auditContract
Review Mojo phase boundaries against krn ownership, value semantics, generic specialization, layouts and diagnostics, recording a concrete omission or a reason to exclude each item.
⬜1.3.6.1Maturity contractsContract
Give each public feature a versioned stable, experimental or planned contract with supported cases and a migration rule rather than implying parser support is execution support.
⬜1.3.6.2Generic boundariesContract
Separate compile-time type and shape parameters from runtime scalar values and bound specialization growth without silently erasing requested precision.
⬜1.3.6.3Borrowed viewsContract
Specify aliasing, mutation and lifetime of views across launches and asynchronous completion without requiring users to learn a vendor ownership model.
⬜1.4krn.runtime
⬜1.4.1Close compiler/runtime reports
Reproduce CPU tile-barrier staleness, struct/import duplication, cooperative launch admission and cache/graph eviction issues. Fix or explain refusal; do not mark a report resolved without a case.
⬜1.4.1.1Barrier metadata
Audit captured barrier effects and reject unsupported divergent participation.
⬜1.4.1.2Struct capture
Repair struct/helper import capture using precise typed identities and source spans.
⬜1.4.1.3Cooperative admission
Reject cooperative launches whose occupancy or target capability requirements cannot be satisfied.
⬜1.4.1.4Cache eviction
Make cache eviction respect in-flight compilation and execution ownership.
⬜1.4.2Retain launch arguments
Keep buffers, library handles and graph resources alive through actual completion, including cancellation and drain timeout.
⬜1.4.2.1Callback cases
One callback failure cannot strand later subscribers; late subscription must observe a completed event.
⬜1.4.2.2Cancellation cases
Cancel before launch, during execution and during drain; verify backpressure release and eventual cleanup.
⬜1.4.2.3Thread and stream cases
Verify per-context/per-thread/per-stream ownership, cross-thread notification and free-threaded behavior.
Read [11]
✅1.4.3Runtime and tooling
Frozen values, device facts/detection, native loader, official CUDA bindings, nvmath integration, host errors/logging, awaitable events, graph/launch paths and CPU/CUDA caches.
⬜1.4.5Python support
Admit each newer released Python minor only after its installation and compatibility lanes pass; keep the current Python restriction until those results exist.
⬜1.4.6Lazy imports
Import optional backends only on demand without hiding missing dependencies or turning a successful CPU import into a GPU support claim.
⬜1.4.7Import evidenceVerify
Measure a fresh-process public import and verify that unrequested native backends and GPU contexts remain uninitialized using loader and context observations.
Read [179]
⬜1.4.8Installation footprintVerify
Measure download bytes and installed dependency bytes for each isolated package set without counting the development environment as the runtime.
⬜1.4.8.1CPU packageVerify
Record the base CPU package closure with Python and platform identity while listing the external C compiler separately.
⬜1.4.8.2CUDA packageVerify
Measure the CUDA extra separately from optional vendor math and reference packages while identifying NVRTC and host driver requirements.
⬜1.4.8.3Metal packageVerify
Measure the Metal extra and document which SDK and operating-system frameworks remain outside the installed package closure.
⬜1.5krn.types.tensor — Returned arrays
Requires shape/type contracts and runtime ownership. Prefer returned results; explicit out remains for reuse, interop and mutation.
⬜1.5.1Define result semanticsDecision
Register scalars, tiles, host scalars and owned device arrays are distinct. Public design.
# Proposed output allocation; current kernels still accept out. @krn.kernel def add_two(x: Vector[T.f32]) -> Vector[T.f32]: y = krn.memory.empty(x.shape, dtype=T.f32, space="global") for i in krn.items(x.shape[0]): y[i] = x[i] + 2 return y⬜1.5.1.1Explicit output writes
Verify the accepted returned-array affine slice using explicit output allocation and return y, leaving scalar-return lifting for a separately specified convenience.
⬜1.5.1.2First return sliceDecision
Decision pending: admit one contiguous output with input-derived extent, a full items(n) map, a unique writer per element and return y first, refusing data-dependent allocation, uncertain initialization and early exits until separately admitted.
⬜1.5.1.3Return grammarContract
Admit one contiguous byte-addressable output whose extent follows validated input metadata, with a complete items(n) map, a unique writer per element and no data-dependent allocation or early exit; reject packed returned outputs until physical-store ownership is admitted.
⬜1.5.1.4Output plan
Build a host-side allocation plan from validated input metadata and hints, retaining shape, dtype, device, ownership and zero-work semantics without launching a kernel.
⬜1.5.1.5Result handles
Represent launch-planned output handles and aliases in typed IR without allowing shared or register scratch to escape.
⬜1.5.1.6Complete writes
Prove full output initialization for the admitted items(n) map and refuse uncertain paths with the unwritten logical region when known.
⬜1.5.1.7CPU results
Return the planned owned CPU buffers after successful execution and enforce the accepted failed-output policy.
⬜1.5.1.8CUDA results
Return planned CUDA buffers with retained completion ownership and no hidden host synchronization.
⬜1.5.1.9Metal results
Return planned Metal buffers with retained completion ownership and no hidden host synchronization.
⬜1.5.1.10Preserve Python returnDecision
Do not make return inside an ordinary loop mean emit every iteration. Choose whole-tensor expressions or an explicit mapped invocation before syntax design.
Read [7]
⬜1.5.1.11Infer output metadata
Infer axes, broadcasting, dtype, layout and device before launch. Require hints when ambiguous; branch results must unify.
⬜1.5.1.12Allocate once
Integrate the accepted host allocation plan, IR handles and complete-write proof so one global output is allocated per launch and scratch cannot escape.
⬜1.5.1.13Return tuples and reductionsDecision
Start with typed tuples; track allocations/aliases separately. Decide that reduction scalars stay on device by default to avoid hidden synchronization.
⬜1.5.1.14Allocation vocabulary
Use
krn.memory.emptyfor storage andkrn.memory.arrayfor initialization. Specify copy versus view semantics.krn.global.arrayis invalid Python syntax.⬜1.5.1.15Async initialization
Specify copy completion and buffer ownership in M1, with asynchronous loading implementation deferred to M5 after events and lifetime contracts pass.
⬜1.5.2Own asynchronous results
Retain inputs, results and scratch until completion, including cancellation and cross-stream consumers.
⬜1.5.2.1Reuse buffers
Free after all consumers through stream ordering or events. Validate explicit out shape, dtype, device, strides and alias rules.
Read [79]
⬜1.5.2.2Protect retained graph outputs
A previous result must not silently change during replay. Choose owned results, explicit borrowed buffers or rejected concurrency.
Read [80]
⬜1.5.2.3Handle data-dependent shapesResearch
Define capacity-plus-length results and bounds in M1, deferring prefix-sum allocation implementations until M2 scan primitives and the relevant domain contracts exist.
⬜1.5.3Acceptance cases
Verify M1 contiguous elementwise, broadcast, row-reduction, tuple, zero-size and explicit-out results plus rejection of unsupported views, leaving strided execution to M2 and cross-stream or graph stress to M5.
⬜1.5.4Output spaces
Distinguish owned global outputs from nonescaping register and shared scratch before planning result allocation.
⬜1.5.5Iteration ownershipContract
Define items(n) as distributed index ownership rather than a Python host loop, with each logical output assigned once and launch geometry excluded from user indexing.
# Current kernel syntax for i in items(x.shape[0]): out[i] = x[i] + 2 # Thread t of T owns t, t+T, t+2*T, ... below n.
⬜1.6krn.math
✅1.6.1Numerical foundations
Strict scalar flags, explicit FMA, conversions, fast/strict separation, narrow conversions, raw SIMD intrinsics and tested noftz global add.
✅1.6.2Recorded fixes
Ragged mean, Metal GELU, explicit FMA fallback loops, once-per-site warnings and dispatcher operand evaluation fixes were implemented; integrated checks remain due.
⬜1.6.3Scalar functions
Define the typed arithmetic, comparisons, conversions, min/max, transcendental and domain-error surface with explicit unsupported cases.
Read [104]
⬜1.6.4Fast functions
Give each krn.fast.math operation its own approximation and exceptional-value contract without a global fast-math switch.
Read [104]
⬜1.6.5Independent references
Compare finite arithmetic and special cases against independent high-precision or exact references rather than treating the emulator as proof of itself.
⬜1.7krn.errors — Source locations and Rich
Numerical error cases agreed; transport precedes exception syntax.
⬜1.7.1Rich-compatible exceptions
Use ordinary exception classes and source spans. Applications opt into Rich; krn must not install a global handler. Public guide.
⬜1.7.1.1Show real failures
One invalid setting, unsupported target operation and unsupported kernel construct. Show expression, shape/dtype/target when useful and a remedy; avoid tensor dumps.
⬜1.7.1.2Retain launch origin
Preserve kernel source, launch site, await/synchronize site, causes, notes and grouped failures.
⬜1.7.1.3Separate built from planned
Host reconstruction exists; compiling kernel raise/try/assert is unfinished. Synthetic records do not prove the device path.
⬜1.7.1.4Check meaningful rendering
Source spans, one chained failure and error-buffer overflow; avoid full ANSI snapshot suites.
Read [66]
⬜1.7.2Bounded transport
Implement the accepted bounded source-site and error-record transport on CPU, CUDA and Metal, preserving overflow evidence and delivery only after completion.
⬜1.7.3Failure reportingDecision
Decision pending: report one observed failure with bounded additional lane metadata initially or deliver grouped failures, without promising deterministic first-lane selection unless explicitly implemented.
Read [198]
⬜1.7.4Failed outputsDecision
Decision pending: make partially written results inaccessible through normal result APIs after a checked device failure, with no rollback promise for writes already performed.
✅1.7.5Initial exceptionsDecision
Accepted owner decision: require admitted try, except, else, rethrow and finally behavior in the first contract release, with unsafe or unsupported forms explicitly rejected rather than deferring handlers beyond M1.
⬜1.7.6Handler participantsDecision
Decision pending: define which admitted handlers are lane-local or uniform and how a caught failure affects later participation, while refusing unsafe barrier exits.
⬜1.7.7Failure contractContract
Record accepted exception types and payloads, lane-local or uniform behavior, partial outputs and delivery boundaries before changing lowering.
Read [198]
⬜1.7.8Transport designContract
Select fixed bounded record slots or a private admitted atomic transport with explicit overflow and memory cost so M1 error delivery does not depend on the M2 public atomics API.
⬜1.7.9Capture exceptions
Add assert/raise, then try/except/else/finally. Validate device-safe construction and reject arbitrary host code.
⬜1.7.9.1Checked assertions
Lower checked assertions to bounded source-mapped exception records.
⬜1.7.9.2Checked raises
Lower supported explicit raises with typed payload and deferred host exception delivery.
⬜1.7.9.3Exception regions
Represent accepted exception regions, handler matching and cleanup effects in typed IR before lowering handlers.
⬜1.7.9.4Exception handlers
Verify the admitted handler forms together and reject every unsupported form without claiming unrestricted Python exception support.
⬜1.7.9.5Handler matching
Lower the accepted typed exception matching rules for one barrier-free try and except region with an explicit unmatched-error path.
⬜1.7.9.6Rethrow
Preserve exception identity and source context when an admitted handler rethrows to the next accepted region or host delivery.
⬜1.7.9.7Else
Run an admitted else block only when its try body completes without a caught or escaping error.
⬜1.7.9.8Finally
Execute admitted cleanup exactly once along normal, caught, rethrown and early-exit paths and reject cleanup that cannot preserve collective progress.
⬜1.7.9.9Exception identity
Rebuild the same Python exception class with source/thread notes. Choose grouped failures versus first failure; use BaseExceptionGroup where non-Exception subclasses require it.
⬜1.7.9.10Uniform exits
Reject nonuniform exception exits that can strand participants at a barrier and admit coordinated exits only after a separate progress proof.
⬜1.7.9.11Required cases
Check host-known and dynamic empty means, accepted divide-by-zero behavior, multiple failing lanes, partial outputs, handler paths and unsafe collective-exit refusal against the admitted contract.
⬜1.7.10Debug workflow
Record source identity, logical index and launch context in M1 exceptions, leaving interactive inspection and breakpoint helpers to M3.
⬜1.8krn.log
⬜1.8.1Public loggingDecision
Use standard Python logging with structured kernel, launch and target context and choose the public krn.log facade without exposing private runtime objects.
⬜1.8.2Bounded diagnostics
Bound diagnostic buffers and deduplicate repeated messages while retaining severity, overflow counts and the original exception.
⬜1.8.3Safe context
Exclude input tensor contents, tokens and paths not needed for diagnosis by default and allow explicit local debug context.
⬜1.9Evidence
⬜1.9.1Separate status dimensions
Represent implementation as native/composed/refused; evidence as declared/compile-tested/device-tested; result as pass/fail/skip/expected-failure. Preserve unknown and unavailable states.
{ "implementation": "composed", "evidence": "device-tested", "result": "pass", "reproducibility": "repeatable", "scope": "exact target and software envelope" }⬜1.9.2Scope each cell
Key by feature, dtype, shape/layout limits, memory scope, numerical policy, architecture and software versions. A successful CUDA compile is not a hardware result.
⬜1.9.3Make coverage honest
Remove broad migration exclusions in stages. Publish full-package line/branch coverage, excluded scope and conformance separately; fix inconsistent applicable/pass totals.
⬜1.9.4Reconcile existing reports
Re-run stale ragged-mean, reductions, narrow conversion, device detection and CUDA profiling cases against one source revision. Keep historical completion but do not present it as current certification.
⬜1.9.5Export evidence
Attach source/IR/artifact identity, command/environment, actual device, outcome and evidence location. Publish only validated schema records; the website must not inspect a sibling repository.
⬜1.9.6Capability-based marks
Extend the strict pytest registry; general tests run on every compatible architecture.
⬜1.9.6.1Define categories
compile, device, integration and benchmark; a structured requires marker for backend, feature, dtype, memory and CPU ISA. Keep expensive/slow separate.
⬜1.9.6.2Resolve eligibility
Use probed capabilities. Record optional skips; fail missing hardware in a required lane. Unsupported-operation error tests still run.
⬜1.9.6.3Remove accidental x86 assumptions
Tests currently default to avx512 and one Metal target. Detect compatible targets; mark ISA-specific cases. Exercise generic CPU kernels on x86 and Arm.
⬜1.9.6.4Assign lanes
Through M4, run generic CPU cases on owned x86 and Arm hosts and admitted CUDA/Metal cases on named devices, keeping silo iGPU discovery separate and deferring AMD hardware, hosted runners and rentals to later admission.
⬜1.9.7Executable documentation
Pilot Sybil with pytest on Markdown Python blocks. Keep Astro/Starlight. Classify runnable, compile-only, expected failure and proposed examples; skipped proposals are not passes.
⬜1.9.7.1Case identity
Join example id, content hash, feature id, version and requirements. Export source plus receipts; the website build cannot read a sibling checkout.
⬜1.9.7.2Collector trial
Prove one CPU block, one hardware-qualified block and one expected exception. Isolate page fixtures. MDX components need an explicit extraction rule.
⬜1.9.7.3Claim validation
Bind each claim to operation, dtype, shape envelope and target. Separate compilation, correctness, numerics and performance. Reject missing or mismatched receipts.
✅1.9.8Public surface and data
Private implementation boundary, executable example organization, compatibility data, support docstrings, API-spec generator, shape probes and CI workflow files.
⬜1.9.9Acceptance contracts
Before implementation, define each example’s input family, dtype, target, independent oracle, error metric, justified threshold, conditioning and expected failures in its task record.
⬜1.10Owned runners
✅1.10.1Owned compute firstDecision
Owner decision. No paid campaign or credit consumption until explicitly approved.
⬜1.10.2Qualify owned machines
Qualify only the Mac mini M4 Pro, silo Intel CPU and iGPU plus RTX 5080, crimson RTX 3090 GPU 1, and pedro-cvlab RTX 4090 through M4; report discovery, compilation and execution separately for the iGPU.
⬜1.10.2.1Mac mini baseline
Use a bare-metal Metal runner for regular GPU checks; report GPU family, OS, Metal compiler, runtime and exposed counters.
⬜1.10.2.2Admission probe
Qualify each M1 device with one simple typed kernel before adding separate groups, atomics and numerical feature probes as those operations land.
⬜1.10.2.3Resource ownership
Use per-device locks for correctness and whole-host exclusion where shared power, memory or PCIe affects performance. Recover from crashes and verify no orphan processes remain.
⬜1.10.3Isolate untrusted changes
Through M4, execute only reviewed exact revisions in restricted owned-runner environments without publishing credentials; add hosted screening after M4 before admitting public pull-request jobs.
⬜1.10.3.1Clean job environment
Ephemeral runner registration alone does not clean the OS. Reset job state, minimize network access and separate artifact upload from release credentials.
⬜1.10.3.2Track total cost
Through M4, bound owned-runner duration and storage; record hosted and rental estimates only for later admission or approved campaigns.
⬜1.11krn.devices
⬜1.11.1Device identityContract
Expose CPU alias 0 and visible GPU aliases 1+ within a frozen process-local discovery session while retaining stable physical identity separately from architecture and vendor ordinal.
⬜1.11.1.1Local aliasesContract
Assign one host CPU device and visible accelerator aliases after runtime masks, recording alias, UUID or fallback identity, backend, runtime ordinal and worker identity.
# Proposed host API cpu = krn.device(0) gpu = krn.device(1) # Persist gpu.identity, not the session alias 1.⬜1.11.1.2Duplicate adaptersContract
Deduplicate adapters only when physical evidence matches and keep aliases fixed within the discovery session, creating a new generation rather than reassigning an old alias after topology changes.
⬜1.11.1.3Selection policyContract
Keep automatic target selection separate from numbering so alias 0 does not silently make CPU the default.
Read [149]
⬜1.11.2Context identityContract
Replace architecture-keyed runtime contexts and stream caches with the accepted physical DeviceRef and generation, preserving distinct same-architecture adapters.
⬜1.11.3Stream ownership
Reject streams from a different executing device or context before driver submission even when peer memory is accessible, and verify two same-architecture identities with host fixtures.
⬜1.11.4Argument accessContract
Validate argument memory against the executing device and the admitted peer-access contract separately from stream ownership, refusing unproven access before submission.
⬜1.11.5Identity cases
Verify mask reordering, duplicate provider discovery, stale generations and same-architecture adapters retain correct physical identities in cache keys and evidence.
⬜1.11.6Fallback identityContract
Declare the scope and confidence of identity when UUID or PCI information is absent and refuse automatic cross-provider deduplication without matching evidence.
⬜1.11.7Device factsContract
Separate frozen compilation capabilities from live runtime telemetry and invalidate specialization when the relevant capability or toolchain fingerprint changes.
⬜1.11.7.1Compile factsContract
Expose typed architecture, subgroup, dtype and resource limits as specialization inputs while excluding changing free-memory and clock samples.
⬜1.11.7.2Runtime factsContract
Return timestamped optional memory and telemetry readings with provenance without treating them as constant compiler facts.
⬜1.11.7.3Capability failuresContract
Distinguish unavailable probing from unsupported execution and name the feature, target and supported alternative in each explicit-request error.
⬜1.12krn.layout
⬜1.12.1Storage mappingContract
Define logical coordinates to byte offsets independently of thread ownership and memory swizzles, keeping contiguous storage as the default.
⬜1.12.1.1View descriptorContract
Specify shape, byte strides, base offset, accessible byte span, dtype, owner, device and mutability for byte-addressable views while using the separate packing descriptor for sub-byte elements.
# Descriptor example, not a new constructor. shape = (3, 3) byte_strides = (28, 8) byte_offset = 4 # offset(i, j) = 4 + 28*i + 8*j⬜1.12.1.2Packed storageContract
Specify storage-unit width, logical element bits, lane or bit offset, packing order, padding and logical shape for sub-byte values instead of rounding fractional-byte strides.
Read [199]
⬜1.12.1.3Packed writersContract
Assign each packed storage unit to one writer or an explicitly admitted race-free update and reject overlapping read-modify-write stores even when logical element indices differ.
⬜1.12.1.4Packed admissionContract
Admit validated contiguous packed buffers first and reject unsupported packed views, preserving separate storage, conversion, arithmetic and matrix-operation capability results.
⬜1.12.1.5Packing cases
Check odd logical lengths, tail padding, packing-order mismatch and unsupported lane-offset views against an independent decoder before accepting a packed buffer.
⬜1.12.1.6Address boundsContract
Check rank, integer overflow, alignment and the full reachable address span rather than allocating logical element count alone.
⬜1.12.1.7Write overlapContract
Admit read-only broadcast views and reject overlapping writes unless a separate operation defines their ordering and ownership.
⬜1.12.1.8View or copyContract
Make transpose and reshape metadata-only when representable and otherwise require an explicit copy or raise for copy=False.
⬜1.12.2Negative stridesContract
Define negative-stride bounds and backend admission separately from positive strides so rejection is explicit until every required lowering supports them.
⬜1.13krn.memory factories
⬜1.13.2Space namesContract
Normalize literal strings and StrEnum members through the same space contract and reject unknown names or data-dependent per-lane spaces.
# Proposed and equivalent space = "global" space = krn.Space.GLOBAL # "globla" raises a source-mapped configuration error.⬜1.13.3Common factoriesContract
Use one factory vocabulary for empty, zeros, ones, full, eye and array while validating each device, space, shape and dtype combination.
⬜1.13.3.1Uninitialized storageContract
Reject statically provable uninitialized reads and unwritten returned elements, checking or refusing uncertain paths rather than claiming complete static detection.
# Proposed launch-planned output y = krn.memory.empty(x.shape, dtype=T.f32, space="global") for i in krn.items(x.shape[0]): y[i] = x[i] + 2 return y⬜1.13.3.2Initialized storageContract
Initialize global storage before its consumer launch, shared storage before a uniform group barrier and register storage within its owning lane, using explicit element conversion.
⬜1.13.3.3Identity storageContract
Define eye for rectangular rank-two shapes with a diagonal offset and reject unsupported rank, resource extent or address space.
⬜1.13.3.4Input storageContract
Make array construction state copy versus view, destination device and completion semantics instead of hiding transfers behind a shared address-space name.
⬜1.13.3.5Storage lifetimeContract
Hoist global outputs to one allocation per launch and limit shared storage to one group and registers to their owning lanes without escape.
⬜1.13.3.6Unsupported storageContract
Reject explicitly unsupported tensor-memory, shared-memory dtype or resource requests and issue performance warnings only for semantically equivalent admitted implementations.
⬜1.13.4Global output capabilityContract
Validate one launch-planned global allocation against shape, dtype, device capacity and initialized-result requirements without depending on other initializer factories.
⬜1.14Five examples
⬜1.14.1Typed affine output
Build a returned-array affine kernel with explicit output shape/type hints and new allocation, preserving input data.
⬜1.14.1.1Implement
Build a returned-array affine kernel with explicit output shape/type hints and new allocation, preserving input data.
⬜1.14.1.2Acceptance
Check contiguous elementwise outputs, empty input, literal versus enum spaces, provably unwritten output failure, device mismatch and explicit rejection of unsupported views; positive-strided acceptance belongs to M2.
⬜1.14.1.3Guide
Publish a self-contained guide at guides/m1/#example-1 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜1.14.2Row statistics
Implement sum and mean with explicit accumulator dtype and Python empty-mean error semantics.
⬜1.14.2.1Implement
Implement sum and mean with explicit accumulator dtype and Python empty-mean error semantics.
⬜1.14.2.2Acceptance
ragged rows, cancellation, overflow bounds, empty extent preflight, dynamic empty-row error attribution where admitted.
⬜1.14.2.3Guide
Publish a self-contained guide at guides/m1/#example-2 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜1.14.3Math accuracy
Compare krn.math and krn.fast.math for reciprocal, square root and exponential under documented per-operation error contracts.
⬜1.14.3.1Implement
Compare krn.math and krn.fast.math for reciprocal, square root and exponential under documented per-operation error contracts.
⬜1.14.3.2Acceptance
normal/subnormal values, signed zero, infinities, NaNs and domain errors; report admitted target/type sets.
⬜1.14.3.3Guide
Publish a self-contained guide at guides/m1/#example-3 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜1.14.4Reproducible sum
Run one cancellation-heavy reduction under native, repeatable and admitted portable requirements and explain refusals.
⬜1.14.4.1Implement
Run one cancellation-heavy reduction under native, repeatable and admitted portable requirements and explain refusals.
⬜1.14.4.2Acceptance
repeat fixed target/configuration; change launch geometry and record guarantee scope; shape invariance only if explicitly implemented.
⬜1.14.4.3Guide
Publish a self-contained guide at guides/m1/#example-4 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜1.14.5Concurrent Python
Compile and launch independent affine jobs concurrently under regular and free-threaded Python without cross-thread state leakage.
⬜1.14.5.1Implement
Compile and launch independent affine jobs concurrently under regular and free-threaded Python without cross-thread state leakage.
⬜1.14.5.2Acceptance
racing cache misses, isolated configuration, result lifetime, deterministic teardown; assert GIL stays disabled after optional binding imports.
⬜1.14.5.3Guide
Publish a self-contained guide at guides/m1/#example-5 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜1.15Cumulative verification
⬜1.15.1Example replay
Run every admitted example from M0 through M1 and report compile, execution, numerical and refusal outcomes separately for each required target.
⬜1.15.2Meaningful tests
Review missing branches and independent oracles, expand Hypothesis and regression cases around observed risks, and remove redundant tests without hiding uncovered behavior.
⬜1.15.3Coverage evidence
Publish line and branch coverage with denominator, exclusions, target and unexecuted paths, never treating 100% host coverage as complete feature or hardware support.
⬜1.15.4Documentation evidence
Build all guides and links, execute available code examples, and attach versioned receipts before upgrading planned or experimental claims.
⬜2M2 Portable primitives
0.0.3 candidate: share typed primitive semantics while rejecting unavailable target guarantees.
⬜2.1Compiler IR
⬜2.1.1Grammar
Publish a versioned textual IR grammar with typed values, shapes, effects, address spaces, numerical requirements and source spans.
⬜2.1.2Validation
Reject invalid dominance, types, effect order, collective convergence and resource requirements before backend dispatch.
⬜2.1.3Round trips
Round-trip valid IR through parsing and serialization without losing semantics or source mappings.
⬜2.1.4Lowering contracts
Make each lowering declare legal input operations and preserved numerical and memory guarantees before replacing the representation.
⬜2.1.5Bounded iteration
Implement bounded iterator composition with explicit termination and evaluation order, refusing unbounded forms without a proven execution bound.
⬜2.2krn.atomics — Ordering and scope
Array address spaces and numerical special-value rules established.
⬜2.2.1Define one operation contract
Specify return-old versus return-new, operand/result dtype, alignment, address space, scope and ordering.
⬜2.2.1.1Ordering validation
Validate load/store/RMW order combinations and compare-exchange success/failure ordering. Do not map acquire/release to relaxed silently.
⬜2.2.1.2Scope validation
Distinguish thread/subgroup/workgroup/device/system participants. Validate allocation coherence and host/peer support; a device-scope operation cannot satisfy a system-scope request.
⬜2.2.1.3Value cases
Specify NaN, signed zero, overflow, CAS bit comparison and weak-CAS spurious failure. Floating atomicity does not imply deterministic update order.
⬜2.2.6CPU lowering
Use the matching host atomic memory model; forbid ordinary loads/stores masquerading as atomics. Check widths/alignment and lock-free assumptions.
Read [62]
⬜2.2.7Contention and publication cases
Use exact integer histograms, CAS winner/return-value checks and bounded message-passing tests. For floats, validate permitted outcomes plus error bounds; do not demand one serial order unless the policy requires it.
⬜2.2.7.1Publication litmus
A successful release/acquire handoff makes its payload visible; test required participants and allocation types.
⬜2.2.7.2Deterministic path
Reject floating atomic reductions under a required repeatability contract unless ordering is established, or select a staged reduction that meets it.
Read [28] [29] [104] [105] [106] [26] [112] [27] [32] [33] [90]
⬜2.3krn.groups — Cooperative algorithms
Atomic/memory scopes agreed; membership and execution scope remain distinct.
⬜2.3.1Define group identity
Represent membership, rank, size and synchronization scope for lane/subgroup/block; add cluster/grid only with real launch support.
⬜2.3.1.1Width portability
Query or specialize supported subgroup width. Remove assumptions that every vendor uses 32 lanes; validate full and partial groups.
⬜2.3.1.2Converged participation
All required participants must encounter matching collectives. Reject divergent barriers/partitions; define inactive-lane and invalid shuffle-source behavior.
⬜2.3.1.3Forward progress
Do not implement a global barrier using spin loops on independently scheduled blocks. Grid/cluster synchronization needs explicit runtime admission.
⬜2.3.2Collective primitives
Implement broadcast, vote, shuffle, reduce, scan and arg reductions with explicit identities, tie rules and exclusive/inclusive semantics.
⬜2.3.2.1CUDA cases
Tiled and coalesced groups, cooperative grid launch, occupancy limits and cluster capability.
⬜2.3.2.2HIP cases
Wave-size differences, mask width and supported cooperative launches; gate cluster APIs by actual architecture.
⬜2.3.2.3SYCL cases
Group/subgroup functions, convergence and implementation-selected reduction order.
⬜2.3.2.4Metal cases
SIMD-group/threadgroup barriers and memory flags; no invented general grid barrier.
⬜2.3.2.5CPU cases
Use a real execution model for block barriers or refuse the launch; sequential threads plus an empty barrier are insufficient.
⬜2.3.3Collective edge cases
Check partial groups, empty participation, ties and visibility on valid launches, testing divergent barriers through static rejection or a bounded emulator instead of hanging hardware.
Read [34]
⬜2.4krn.math — Reductions and accumulators
M1 policies agreed; group semantics available.
⬜2.4.1Native cooperative tree
Finish per-lane work, subgroup shuffle and shared combine. Record the actual order; current lane_reduce depends on launch lanes and a 32-lane tree.
⬜2.4.2Repeatable tree
Select a fixed algorithm within a declared envelope; prohibit unordered floating atomic completion and unrecorded autotuning.
⬜2.4.3Portable reduction subset
Start with sum for chosen formats; compare a canonical per-output tree with reproducible accumulators.
⬜2.4.3.1Canonical tree
Index leaves by logical reduction position, independent of block/warp/batch shape. Map the same tree onto different hardware while preserving primitive semantics.
⬜2.4.3.2Order-independent candidate
Prototype binned or exact/superaccumulator algorithms where justified. A reproducible accumulator is not automatically a correctly rounded exact sum; specify the actual algorithm and bound.
⬜2.4.3.3Special values
Define NaN handling, signed zero, overflow and empty input before promising bitwise equality.
⬜2.4.3.4Cost comparison
Measure overhead against native for matched correctness requirements; do not extrapolate CCCL’s NVIDIA-specific results to all vendors or GEMM.
⬜2.4.4Flexible accumulation
Preserve requested APIs: dot(acc=...), sum/mean/prod/logsumexp/norm(dtype=...), matmul(accumulate=...).
⬜2.4.4.1Intermediate rounding
Define each running update or hardware step, not only final cast. Deliberate fp8 accumulation rounds each add and warns; unsupported f64 on Apple is refused.
⬜2.4.4.2Native or composed
Use a matrix instruction only if its documented contract satisfies the request. Otherwise compose with a warning or refuse; do not promise a software loop will be equally fast.
⬜2.4.4.3Accuracy cases
Use cancellation, ragged K, empty rows, overflow/subnormals and mixed-sign products. Compare against both independent mathematical reference and the selected execution model.
⬜2.5krn.memory
⬜2.5.2General intrinsic dispatch
Finish half/bfloat packed types, SIMD general names, symbolic overload ties, honest cost labels and constant/address-space facts.
⬜2.5.2.1Packed types
Resolve packed operand storage and logical element types without implicit reinterpretation.
⬜2.5.2.2SIMD names
Map generic SIMD intrinsics to explicit target capabilities and typed signatures.
⬜2.5.2.3Overload resolution
Choose intrinsic overloads from typed operands and emit precise ambiguous or missing-overload errors.
⬜2.5.2.4Cost labels
Label native and composed intrinsic paths without presenting a static estimate as a measured timing.
⬜2.5.2.5Constant facts
Propagate proven constant facts through lowering without assuming runtime values are static.
⬜2.5.2.6Address spaces
Preserve alignment, alias and address-space facts across intrinsic dispatch.
⬜2.6Backend diagnostics
⬜2.7Layout lowering
⬜2.7.1Strided ABIContract
Carry validated byte strides and base offsets through capture, launch descriptors and backend addressing without implicit densification.
⬜2.7.1.1IR descriptorContract
Add shape, stride, offset and bounds fields to the tensor ABI with explicit integer widths and serialization round trips.
⬜2.7.1.2CPU addressingContract
Lower positive-strided reads and writes using the accepted descriptor and reject out-of-span access before dispatch.
⬜2.7.1.3CUDA addressingContract
Pass strides and offsets to CUDA kernels and preserve view metadata across uploads and launch marshalling.
⬜2.7.1.4Metal addressingContract
Pass strides and offsets to Metal kernels while retaining the underlying buffer and validating its accessible range.
⬜2.7.2Layout transformsContract
Implement compose, tile and reshape operations with address-equivalence tests and explicit physical span versus logical size.
Read [150]
⬜2.7.3Thread mappingContract
Keep lane ownership and shared-memory swizzles separate from logical tensor strides and verify bijection, bank constraints and barriers before choosing optimized mappings.
⛔2.7.4Layout case
Verify equivalent contiguous and positive-strided device views preserve the declared numerical promise while recording actual launch strides and refusing a helper that densifies the input. Blocked until public device views preserve offsets and strides; a strided host array alone is not evidence.
⬜2.8Five examples
⬜2.8.1Integer histogram
Build an exact histogram with capability-checked atomics and compare to a Python count reference.
⬜2.8.1.1Implement
Build an exact histogram with capability-checked atomics and compare to a Python count reference.
⬜2.8.1.2Acceptance
colliding bins, empty input, tail lengths, i32/i64 where supported; reject unavailable scope/order/alignment.
⬜2.8.1.3Guide
Publish a self-contained guide at guides/m2/#example-1 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜2.8.2Group scan
Implement inclusive scan and stable compaction with subgroup and workgroup collectives.
⬜2.8.2.1Implement
Implement inclusive scan and stable compaction with subgroup and workgroup collectives.
⬜2.8.2.2Acceptance
non-power-of-two group sizes, partial final group, all/none selected; no assumption of 32-wide waves.
⬜2.8.2.3Guide
Publish a self-contained guide at guides/m2/#example-2 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜2.8.3Shared transpose
Implement a tiled transpose through shared memory with uniform barriers and explicit bounds.
⬜2.8.3.1Implement
Implement a tiled transpose through shared memory with uniform barriers and explicit bounds.
⬜2.8.3.2Acceptance
rectangular and ragged dimensions, aligned/strided layouts, resource limits; static divergent-barrier example must fail before launch. Record physical layout metadata and distinguish logical strides from shared-memory swizzles.
⬜2.8.3.3Guide
Publish a self-contained guide at guides/m2/#example-3 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜2.8.4Inspectable lowering
Compile a composed map-plus-reduction kernel to validated IR and show source-to-IR-to-target correspondence.
⬜2.8.4.1Implement
Compile a composed map-plus-reduction kernel to validated IR and show source-to-IR-to-target correspondence.
⬜2.8.4.2Acceptance
valid grammar roundtrip, invalid typed IR refusal, lazy backend loading, supported/rejected operation paths.
⬜2.8.4.3Guide
Publish a self-contained guide at guides/m2/#example-4 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜2.8.5Actionable failures
Produce source-mapped reports for a safe invalid launch, compiler failure and deliberate checked kernel exception.
⬜2.8.5.1Implement
Produce source-mapped reports for a safe invalid launch, compiler failure and deliberate checked kernel exception.
⬜2.8.5.2Acceptance
distinguish API status, build log, optional vendor diagnostics and device records; bounded truncated logs and unavailable diagnostic APIs.
⬜2.8.5.3Guide
Publish a self-contained guide at guides/m2/#example-5 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜2.9Cumulative verification
⬜2.9.1Example replay
Run every admitted example from M0 through M2 and report compile, execution, numerical and refusal outcomes separately for each required target.
⬜2.9.2Meaningful tests
Review missing branches and independent oracles, expand Hypothesis and regression cases around observed risks, and remove redundant tests without hiding uncovered behavior.
⬜2.9.3Coverage evidence
Publish line and branch coverage with denominator, exclusions, target and unexecuted paths, never treating 100% host coverage as complete feature or hardware support.
⬜2.9.4Documentation evidence
Build all guides and links, execute available code examples, and attach versioned receipts before upgrading planned or experimental claims.
⬜3M3 Development helpers
0.0.4 candidate: explain failures and measure correctness, variability and performance independently.
⬜3.1krn.debug
⬜3.1.1Source stepping
Expose inspectable source, typed IR, launch parameters and checked logical indices for a reproducible failing kernel.
⬜3.1.2Replay
Reproduce a captured failure under the recorded target and numerical envelope while reporting instrumentation-induced execution changes.
Read [120]
⬜3.1.3Unsupported inspection
Return actionable capability errors when stepping, capture or counters are unavailable instead of silently presenting synthetic data.
⬜3.1.4Diagnostic rules
Represent register caps, spills, cache reuse, false sharing, index width, bank conflicts and subgroup-width diagnostics with required facts, severity, unknown states and one reproducer each.
⬜3.2krn.profile — Common measurement
Stable launch identities and runtime ownership.
⬜3.2.1Common event model
Represent host spans, device kernels, copies, stream/context IDs and correlation; bounded buffers must expose dropped records.
⬜3.2.2CUDA provider
Complete CUPTI correlation, native stream mapping, NVTX, memset, counter permissions and competing-subscriber diagnostics.
Read [36]
⬜3.2.3Metal provider
Validate available counter sets, sampling points and timestamp conversion, rejecting invalid samples and distinguishing command-buffer timing from per-kernel measurements.
Read [39]
⬜3.2.6CPU provider
Separate wall time, process CPU time and hardware counters. Missing permissions yield an actionable unavailable result.
⬜3.2.7Profiler validation
Measure record/event overhead and loss; validate occupancy, spills, bandwidth and divergent-access warnings against vendor tools. Never compare instrumented candidate time with uninstrumented baseline.
✅3.2.8Profiling cleanup
Initial CPU/Metal/CUDA timing/activity support; loader and stub cleanup and local type checks were reported complete.
⬜3.2.9Compilation stagesContract
Expose capture, lowering, compiler, cache lookup, module loading and first-launch spans without merging them into one compilation time.
⬜3.2.9.1Stage recordContract
Define nested host spans and cache outcomes with source, compiler, device and numerical-policy identities without summing overlapping spans twice.
⬜3.2.9.2CPU traceVerify
Instrument one installed CPU kernel through first compilation and warm-cache replay with correct stage boundaries and missing-stage labels.
⬜3.2.9.3Device traceVerify
Instrument one admitted CUDA or Metal kernel and separate host submission from completed device work before a later backend port.
⬜3.3Accumulation-forest diagnostics
Use the existing study; extract a reviewed interface before adding a core dependency.
⬜3.3.1Define the adapter
Start from the study’s fp.forest, forest_error, forest_reproducibility and exact RNE components. Keep research instruments unchanged and heavy research dependencies optional.
⬜3.3.1.1Operation record
Bind source/IR identity, logical output coordinates, input bytes, shape/strides, algorithm, precision, storage boundaries, target and software stack.
⬜3.3.1.2Evidence record
Keep recovered trees, coverage/refusals, native output samples, replay identity and acquisition cost. A source snapshot or receipt must accompany a result.
⬜3.3.1.3Dependency boundary
Translate reviewed records into krn’s typed values; do not import the study’s full torch/pydantic environment into the core package.
⬜3.3.2Measure repeated runs
Hold the execution envelope fixed, record distinct native outputs and per-output mismatch frequencies. Separate intra-process repeats from fresh-process and fresh-compilation repeats.
⬜3.3.3Measure vulnerability
Change batch, tile, alignment, streams, library choice and target one factor at a time. Report bit mismatches, absolute/relative/ULP differences and downstream changes such as argmax or solver residuals.
⬜3.3.3.1Input families
Include cancellation, wide exponent range, near-ties, near-underflow/overflow, sparse duplicates and real workload samples.
⬜3.3.3.2Report uncertainty
No observed mismatch is not a proof. Confidence bounds require a stated sampling model; do not assume independent repeated runs or treat synthetic alternate trees as observed execution frequencies.
⬜3.3.4Validate recovery and replay
Check recovered structure against known small kernels and independent arithmetic. Keep input representation, arithmetic, intermediate storage and final output rounding distinct.
⬜3.3.4.1Exact route
Use the study’s exact finite-state/RNE route only within its admitted model and complete evidence scope. Preserve refusal conditions.
⬜3.3.4.2Empirical route
Use shared samples for empirical moments/covariance and error decomposition. Label model forecasts separately from observations and exact replay.
⬜3.3.4.3Integration cases
Recover two known trees with different rounded outputs; reject incomplete scope; replay held-out inputs; expose cost and unsupported hardware honestly.
⬜3.4Benchmark protocol
Correctness contract and working timer; deep counters are not required for initial timing.
⬜3.4.1Register the workload
Freeze source and input identity, shapes, layouts, storage and arithmetic dtypes, numerical acceptance, allocation behavior, target, workspace and tuning budget before comparisons.
⬜3.4.4Separate the clocks
Report cold import/JIT, warm launch overhead, device compute, transfers and end-to-end latency separately.
⬜3.4.4.5Incremental build
Measure warm artifact reuse, one source edit and a new shape or dtype specialization without describing retained driver or OS caches as fully cold.
Read [189]
⬜3.4.4.9Memory reuse
Name cache-hot and streaming-memory regimes explicitly and match input reuse or report the difference without silently warming only one candidate.
⬜3.4.4.10Fair baseline
Match accuracy, layout, batch, workspace and tuning costs. Vendor dispatch is an integration result; distinguish it from generated-kernel performance.
⬜3.4.4.11Library costs
Match vendor-library precision, workspace and tuning budgets while reporting conversion, packing, transfer and initialization separately and in end-to-end cost.
⬜3.4.4.12Source sizeContract
Count formatted algorithm code, required helpers, handwritten intrinsics and host or build glue separately while identifying vendor calls and excluding generated code from handwritten counts.
⬜3.4.4.13Build footprint
Record compiled artifact bytes, available intermediate-code size, compiler peak memory and specialization count with shared libraries identified separately.
Read [196]
⬜3.4.4.14Maintenance trialResearch
Compare one held-out semantic edit or bug repair under fixed acceptance cases using elapsed work, attempts, regressions and review effort rather than line count alone.
Read [35]
⬜3.4.5Regression decisions
Use a predeclared material slowdown threshold and uncertainty. A noisy result is inconclusive; diagnose or rerun within a budget, never retry until green.
⬜3.4.5.1Shape families
Include small/large, aligned/ragged, memory-bound/compute-bound and realistic distributions. Do not hide severe regressions inside one aggregate score.
⬜3.4.5.2Historical comparisons
Compare compatible hardware/software/policies. A driver or compiler update establishes a new baseline unless comparability is demonstrated.
⬜3.4.5.3Durable results
Store samples and artifacts through Mainboard’s lake; publish a compact versioned summary with links to the evidence.
⬜3.4.6Continuous optimization loop
Profile → choose a cause → change lowering/schedule → correctness gate → paired measurement → integrate or reject.
⬜3.4.6.1Bound tuning
Tune only candidates satisfying the numerical contract. Record search space, budget and selected configuration; never let tuning silently change an advertised guarantee.
⬜3.4.6.2Cache identity
Include source, compiler, target, layout and numerical policy. Result memoization waits for an explicit purity/mutation/ownership contract.
⬜3.4.6.3Competitor caches
Scope competitor caches by source and toolchain digest and archive referenced binaries because Modular kbench cached mode does not detect source changes.
Read [189]
⬜3.4.6.5Three kernel pilotVerify
Compare integer affine, cancellation-heavy row reduction and an admitted transpose on compatible owned hardware before expanding to GEMM or a broad language matrix.
⬜3.4.6.6Small-model usability
Use held-out kernel tasks and a fixed budget. Count successful correct solutions, repair effort, total cost and readability; short code alone is insufficient.
⬜3.4.7Alternative baselineVerify
Compare one already admitted affine or reduction workload with a pinned Mojo or MAX baseline under matched numerical and transfer contracts on owned hardware.
⬜3.4.7.1Trial contractContract
Select one workload, input family, backend and independent oracle from accepted examples and record exact comparator release support without requiring future math or text features.
⬜3.4.7.2Cold compilationVerify
Run the selected Mojo or MAX comparator through the existing first-result harness and record supported phase timings and unavailable observations.
⬜3.4.7.3Cached startupVerify
Run the selected comparator through the existing cached-startup harness using versioned competitor cache identities.
⬜3.4.7.4Steady executionVerify
Run the selected comparator through the existing paired-trial harness and retain correctness results, distributions and failures.
⬜3.5Five examples
⬜3.5.1Source debugging
Debug a checked ragged-index failure and show the exact kernel expression and failing logical index.
⬜3.5.1.1Implement
Debug a checked ragged-index failure and show the exact kernel expression and failing logical index.
⬜3.5.1.2Acceptance
CPU/CUDA/Metal capability-specific diagnostics; preserve normal exception fallback without Rich.
⬜3.5.1.3Guide
Publish a self-contained guide at guides/m3/#example-1 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
Read [120]
⬜3.5.2Timing anatomy
Measure cold JIT, warm host launch, transfer and device execution separately for vector addition.
⬜3.5.2.1Implement
Measure cold JIT, warm host launch, transfer and device execution separately for vector addition.
⬜3.5.2.2Acceptance
correct synchronization; many repetitions; no first-run cost hidden in warm results.
⬜3.5.2.3Guide
Publish a self-contained guide at guides/m3/#example-2 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜3.5.3Timeline
Capture two kernels and a transfer as a correlated CPU/GPU timeline with raw evidence.
⬜3.5.3.1Implement
Capture two kernels and a transfer as a correlated CPU/GPU timeline with raw evidence.
⬜3.5.3.2Acceptance
missing counters, invalid sentinel, clock-domain conversion and wrap handling; timestamp-only fallback labeled.
⬜3.5.3.3Guide
Publish a self-contained guide at guides/m3/#example-3 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜3.5.4Optimization report
Diagnose a transpose bottleneck using bandwidth and profiler evidence and compare one supported optimization.
⬜3.5.4.1Implement
Diagnose a transpose bottleneck using bandwidth and profiler evidence and compare one supported optimization.
⬜3.5.4.2Acceptance
identical correctness envelope, uninstrumented baseline, confidence interval and resource-limit report.
⬜3.5.4.3Guide
Publish a self-contained guide at guides/m3/#example-4 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜3.5.5Reproducibility report
Measure repeated output bit differences and numerical error for a cancellation-heavy reduction across admitted owned devices.
⬜3.5.5.1Implement
Measure repeated output bit differences and numerical error for a cancellation-heavy reduction across admitted owned devices.
⬜3.5.5.2Acceptance
repeat counts, ULP/error histograms, recorded compiler/kernel policy, profiling separated; report observed variability without universal proof claims.
⬜3.5.5.3Guide
Publish a self-contained guide at guides/m3/#example-5 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜3.6Cumulative verification
⬜3.6.1Example replay
Run every admitted example from M0 through M3 and report compile, execution, numerical and refusal outcomes separately for each required target.
⬜3.6.2Meaningful tests
Review missing branches and independent oracles, expand Hypothesis and regression cases around observed risks, and remove redundant tests without hiding uncovered behavior.
⬜3.6.3Coverage evidence
Publish line and branch coverage with denominator, exclusions, target and unexecuted paths, never treating 100% host coverage as complete feature or hardware support.
⬜3.6.4Documentation evidence
Build all guides and links, execute available code examples, and attach versioned receipts before upgrading planned or experimental claims.
⬜4M4 Advanced math
Prove quantization and reusable dense operations before building mixed-precision decompositions.
⬜4.1krn.quantization — Encoders and decoders
Packed storage and accumulation contracts.
⬜4.1.1Format contract
Specify scales, zero points, rounding, saturation, block layout, serialization and malformed-input handling.
⬜4.1.2Encode and decode
Cover integer and narrow/block-scaled formats; capture QMatrix before advertising block-scaled products.
⬜4.1.2.1Integer codecs
Implement integer quantization and dequantization with explicit signedness, scale, zero-point, clipping and packed-bit order.
⬜4.1.2.2FP8 codecs
Implement admitted FP8 encodings and reconstruction with explicit rounding, saturation and special-value behavior.
⬜4.1.2.3Block codecs
Implement admitted packed FP4 and block-scaled formats with scale metadata, edge-block and alignment checks.
⬜4.1.3Use the codec
Integrate composed Apple fp8 and native products only on verified targets; include conversion costs in performance.
⬜4.1.4Codec cases
Round trips, boundary ties, saturation, sub-byte tails, corrupt metadata and downstream error/quality at matched memory cost.
⬜4.2krn.linalg
⬜4.2.1Dense building blocks
Implement batched matmul, vector norms, triangular solves and reusable FP32/FP64 LU and Cholesky factors only on targets supporting the requested type.
⬜4.2.1.1Batched products
Implement batched matmul under approved batch, stride, dtype and output contracts.
⬜4.2.1.2Stable norms
Implement stable vector norms with declared overflow and underflow behavior.
⬜4.2.1.3Triangular solves
Implement triangular solves with transpose, conjugate, unit-diagonal and multiple-RHS support.
⬜4.2.1.4LU factors
Implement partial-pivot LU with reusable factors and singular-pivot diagnostics.
⬜4.2.1.5Cholesky factors
Implement reusable Cholesky factors with triangle ownership and non-positive-pivot diagnostics.
⬜4.2.2Shape contract
Specify leading batch broadcasting, vectors versus multiple RHS, empty inputs, strides, conjugation, output ownership and singularity statuses before solver optimization.
⬜4.2.3Reusable factors
Separate factorization from repeated solves and expose transpose/conjugate solves with consistent pivot application.
✅4.2.5Initial libraries
Initial dense and sparse library code exists; this historical check does not establish the planned portable contracts or current hardware evidence.
⬜4.2.6Seeded probes
Define a versioned seeded random stream with explicit counter-to-element mapping for block probes and randomized algorithms, separating reproducibility from statistical quality.
⬜4.3Dense kernels
⬜4.3.1CPU zero-cost work
Remove redundant loop levels/guards and enable safe vectorization. Keep ordered scalar loops ordered when the contract requires it.
⬜4.3.2Softmax and norms
Use cooperative reductions, avoid repeated exponentials and handle ragged valid counts.
⬜4.3.3GEMM
Reduce register pressure and scalar epilogue stores, improve Apple staging/f32 paths and justify newer instructions with measured gains.
⬜4.3.4Retain performance goals
Softmax ≤1.2× handwritten latency; f16 GEMM ≤1.05× cuBLASLt/MLX; attention ≤1.3× matched vendor latency and fewer than 30 algorithm lines; CPU ≤1.05× handwritten C. Long-term goal: parity. These remain goals, not current claims.
⬜4.4Five examples
⬜4.4.1Quantization round trip
Encode and decode FP16, BF16 and admitted FP8/FP4 formats using explicit scales.
⬜4.4.1.1Implement
Demonstrate unscaled FP16/BF16 conversion and explicitly scaled admitted FP8/FP4 codecs with their encoding and reconstruction rules.
⬜4.4.1.2Acceptance
Cover zeros, clipping, NaNs, tails and scale metadata; compare error against original values and exact encoding rules.
⬜4.4.1.3Guide
Publish a self-contained guide at guides/m4/#example-1 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜4.4.2Batched GEMM
Multiply rectangular batches with independent operand, accumulator and output types.
⬜4.4.2.1Implement
Multiply rectangular batches with independent operand, accumulator and output types.
⬜4.4.2.2Acceptance
Cover broadcasting, transposes and ragged K; unsupported precision combinations must refuse explicitly.
⬜4.4.2.3Guide
Publish a self-contained guide at guides/m4/#example-2 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜4.4.3Reusable LU
Factor a pivot-requiring nonsingular FP32 matrix once and solve vector and multiple RHS inputs.
⬜4.4.3.1Implement
Factor a pivot-requiring nonsingular FP32 matrix once and solve vector and multiple RHS inputs.
⬜4.4.3.2Acceptance
Check permutation, factor reconstruction and normalized residuals against independent CPU references.
⬜4.4.3.3Guide
Publish a self-contained guide at guides/m4/#example-3 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜4.4.4SPD solve
Factor a known SPD matrix and solve through two triangular operations.
⬜4.4.4.1Implement
Factor a known SPD matrix and solve through two triangular operations.
⬜4.4.4.2Acceptance
Check both triangle conventions, non-SPD failure and factor residual without diagonal perturbation.
⬜4.4.4.3Guide
Publish a self-contained guide at guides/m4/#example-4 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜4.4.5Norms and softmax
Compute row norms and stable softmax across ordinary and extreme magnitudes.
⬜4.4.5.1Implement
Compute row norms and stable softmax across ordinary and extreme magnitudes.
⬜4.4.5.2Acceptance
Cover empty rows, infinities, tails and explicit accumulation; benchmark only after correctness passes.
⬜4.4.5.3Guide
Publish a self-contained guide at guides/m4/#example-5 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜4.5Cumulative verification
⬜4.5.1Example replay
Run every admitted example from M0 through M4 and report compile, execution, numerical and refusal outcomes separately for each required target.
⬜4.5.2Meaningful tests
Review missing branches and independent oracles, expand Hypothesis and regression cases around observed risks, and remove redundant tests without hiding uncovered behavior.
⬜4.5.3Coverage evidence
Publish line and branch coverage with denominator, exclusions, target and unexecuted paths, never treating 100% host coverage as complete feature or hardware support.
⬜4.5.4Documentation evidence
Build all guides and links, execute available code examples, and attach versioned receipts before upgrading planned or experimental claims.
⬜5M5 Advanced execution
After M4, admit additional runner options while proving lifetime, cancellation, placement and specialization contracts.
⬜5.1Async graphs and ownership
Event completion and error delivery contracts agreed.
⬜5.1.1Complete asyncio helpers
Integrate Event.subscribe, Slots, window, bounded shielded drain and Run.drain_seconds; rewrite the streams example. Provide a short Trio bridge, not a second shipped scheduler.
⬜5.1.2Avoid head-of-line blocking
Independent streams complete independently. Ordered output must not prevent replenishing the sliding window.
⬜5.1.3Measure helper cost
Retain the existing goals: within 3% of the fake-device sliding-window ideal and below 2 µs added per launch. Measure separately from device compute.
⬜5.2Execution contracts
⬜5.2.3Specializations
Bound cache variants and workspace by shape, type, layout and numerical policy and safely coordinate concurrent compilation and eviction.
⬜5.3krn.memory
⬜5.3.3Unified addressability
Separate ownership, accessibility, residency and coherence. Unified memory does not promise zero-copy speed. Public guide.
⬜5.3.3.2Preserve ordering
Shared addresses do not remove dependencies, synchronization or atomic scopes. Reject forbidden concurrent access.
⬜5.3.3.3Offer residency hints
Prefetch and advice are performance hints. Measure page faults, migrations, oversubscription and peer ownership separately from kernel time.
⬜5.3.3.4Make fallback explicit
Automatic selection may use transfers when semantics permit. An explicit unsupported coherence/system-atomic requirement raises an error.
⬜5.3.3.5Test access transitions
Host writes before launch, reads after completion, migration, read sharing, alternating writers, peer access, oversubscription and host-buffer lifetime.
⬜5.3.4Copies and pipelines
Express producer/consumer dependencies in krn. Select synchronous copies, hardware async copies or TMA by capability.
⬜5.3.4.1Check stage safety
Validate lifetime, alignment, size, participation, completion before reading and completion before reuse.
⬜5.3.4.2Handle TMA constraints
Backend owns tensor-map descriptors, swizzle, barrier arrivals/byte counts and proxy fences. TMA requirements are stricter than generic async copies.
⬜5.3.4.3Exercise tails
Zero work, ragged tiles, partial groups, stage wraparound and invalid divergent participation; sanitizers plus independent result oracles.
⬜5.4Backend execution
⬜5.4.2Scheduling and isolationResearch
Study cluster launch control for irregular work; dependent launch for overlapping producers/consumers; green contexts/locality domains for isolation. Require a measured workload.
⬜5.4.2.1Clusters
Study thread-block clusters against a concrete cross-block workload before admitting their synchronization semantics.
⬜5.4.2.2Persistent kernels
Study persistent scheduling under bounded resource and cancellation requirements before implementation.
⬜5.4.2.3Isolation
Evaluate available execution isolation controls against a specific shared-device workload and report unsupported consumer-device paths.
⬜5.4.5Defer device-side launchDecision
First establish whether graphs, persistent kernels or work queues solve the workload.
Read [84]
⬜5.5Runner expansion
⬜5.5.1Use hosted CI selectively
After M4, admit GitHub x86 and Arm lanes and evaluate GPU runners by actual exposed device APIs, cost and measured access rather than assuming hosted macOS supplies usable Metal GPUs.
⬜5.5.1.1GitHub candidates
Use standard Linux/macOS for CPU/package checks. Evaluate Linux T4 GPU and advertised Apple-silicon larger-runner acceleration with the admission probe; do not infer support for newer instructions.
⬜5.5.1.2CircleCI candidates
Deferred alternative. Start with GitHub and owned runners; reconsider another CI provider only for a demonstrated capability, queue or cost gap.
⬜5.5.1.3Pin the environment
Use explicit OS images and compiler/driver locks for comparison baselines. Test newer stacks in a separate canary lane before replacing the baseline.
⬜5.5.1.4T4 is a baseline
GitHub's GPU runner is a Tesla T4; it cannot validate newer tensor-memory/cluster features. Larger Apple-silicon runners explicitly offer GPU acceleration; not every macOS VM does.
Read [15]
⬜5.5.2Route by cost and risk
Avoid the full Cartesian product on every pull request.
⬜5.5.2.1Pull request gate
Lint/types, small oracle/property tests, targeted compilation and CPU integration. Cancel superseded jobs; restrict unaffected backend reruns.
⬜5.5.2.2Integration gate
Run affected backend cases on owned hardware plus the shared compiler regression set. Require every advertised affected target before merging a semantic change.
⬜5.5.2.3Scheduled campaign
Broader generated corpora, real-hardware conformance, repeatability and stable performance workloads. Save exact revisions; this roadmap creates no schedules.
⬜5.5.2.4Release gate
Clean install/build plus supported-platform conformance and evidence export on the exact release candidate. A docs-only change should not launch a GPU benchmark fleet.
⬜5.5.3Credit-backed GPU campaigns
Retain Vast.ai and HPC-AI credits for separately approved capped campaigns after M4; verify price, architecture, software and interruption behavior before each rental, treating the quoted B200 $3.75/GPU-hour as an unverified offer rather than a budget.
⬜5.5.3.1Verify credits and billing
Check usable balance, expiry, eligible instances, minimum allocation and billing units before each campaign.
⬜5.5.3.2B200 spot
Owner quote: $3.75/GPU-hour, 8×B200, 180GB/GPU, 8×400Gb/s InfiniBand. Eight billed GPUs imply $30/server-hour. Public site confirms full-server rental, not this spot quote; verify before booking.
Read [69]
⬜5.5.3.3Vast.ai
Select architecture, memory, isolation and bandwidth; record compute/storage/traffic charges. Stopped instances may still bill storage.
Read [68]
⬜5.5.3.4Resume interruption
Checkpoint test shards and completed work; fetch artifacts before teardown. Distinguish preemption from incorrect results and exclude interrupted timing from steady benchmarks.
⬜5.5.3.5Cap and settle
Block paid compute until a campaign has an owner-approved duration, allocation and total spend cap, including credits. On interruption, recover only from durable checkpoints and verify billed resources are terminated.
⬜5.5.4Workstation requirements
Before admitting additional hardware after M4, verify PCIe resources, power, cooling, driver coexistence and required memory capabilities.
⬜5.6Allocator interoperability
⬜5.6.1DLPack exchangeContract
Implement negotiated stream, device, copy and ownership semantics instead of treating an exported pointer as a complete interoperability contract.
Read [40]
⬜5.6.4Immutable inputsContract
Treat JAX imports as read-only unless an explicit donation or mutation contract transfers ownership and test that krn cannot silently corrupt framework aliases.
⬜5.6.5Upload lifetimeVerify
Retain the actual contiguous upload temporary through completion and order allocation before a copy on a different stream.
⬜5.6.6Optional MAX integrationResearch
Evaluate one documented optional MAX or Mojo interoperation path for a concrete accepted workload without making it a required backend or silently changing numerical guarantees.
⬜5.6.6.1Adapter proposalResearch
Identify the public API, package version, component licenses, copy requirements and failure behavior before proposing an isolated optional adapter.
⬜5.6.6.2Tensor ownershipVerify
After the adapter proposal is accepted, verify one tensor exchange for lifetime, stream ordering, device identity and copies and reject unsupported numerical requirements.
⬜5.7krn.distributed
⬜5.7.1Transfer routesContract
Compare physical source and destination identities before eliding a transfer and select an admitted peer or host-staged route with explicit completion.
⬜5.7.2Mixed device graphContract
Run separately compiled kernels on two admitted CPU/GPU endpoints with explicit transfer and event edges, adding Intel GPU execution after its backend qualification instead of claiming a cross-vendor native kernel.
# Proposed host orchestration # CPU 0 -> Intel iGPU -> NVIDIA GPU # Each arrow owns transfer and completion requirements. # Aliases come from discovery; GPU order is not assumed.⬜5.7.4Device communication IRContract
Represent remote windows, put, get, signal, wait and collective effects without conflating local completion, buffer reuse, remote visibility or group synchronization.
⬜5.7.4.1Remote lifetimeContract
Require host-created ranks, windows and symmetric allocations to outlive every participating kernel and pending remote operation.
⬜5.7.4.2Progress contractContract
Admit supported progress protocols, bound host waits and retain resources until device completion or quarantine the failed context when safe cancellation is unavailable.
⬜5.7.4.3JIT linkageContract
Pin device-library and compiler ABIs in cache keys and validate required symbols, relocation and provider headers before launch.
⬜5.7.4.4Device requirementContract
Raise when an explicit in-kernel operation lacks device-callable support and allow host staging only under a separately declared host-graph contract.
⬜5.8Five examples
⬜5.8.1Streaming batches
Use a bounded asynchronous window to overlap batch transfer and compute while preserving buffer lifetimes.
⬜5.8.1.1Implement
Use a bounded asynchronous window to overlap batch transfer and compute while preserving buffer lifetimes.
⬜5.8.1.2Acceptance
depth 1/2/4, ragged final batch, backpressure, no unbounded queued work; overlap measured only on capable targets.
⬜5.8.1.3Guide
Publish a self-contained guide at guides/m5/#example-1 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜5.8.2Event graph
Implement a two-stream dependency diamond with explicit events and one terminal result.
⬜5.8.2.1Implement
Implement a two-stream dependency diamond with explicit events and one terminal result.
⬜5.8.2.2Acceptance
cross-stream visibility, event reuse generations, exact completion/failure propagation.
⬜5.8.2.3Guide
Publish a self-contained guide at guides/m5/#example-2 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜5.8.3Cancellation
Cancel an awaiting pipeline without releasing input or output storage while device work still uses it.
⬜5.8.3.1Implement
Cancel an awaiting pipeline without releasing input or output storage while device work still uses it.
⬜5.8.3.2Acceptance
failure before submit, after submit and during drain; bounded shielded drain and timeout explanation.
⬜5.8.3.3Guide
Publish a self-contained guide at guides/m5/#example-3 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜5.8.4Specialized kernels
Cache specialized kernels by relevant shape/type/layout/device/numerical settings and verify reuse and invalidation.
⬜5.8.4.1Implement
Cache specialized kernels by relevant shape/type/layout/device/numerical settings and verify reuse and invalidation.
⬜5.8.4.2Acceptance
concurrent cache population, variant budget, bounded eviction, changed reproducibility configuration.
⬜5.8.4.3Guide
Publish a self-contained guide at guides/m5/#example-4 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜5.8.5Sharded execution
Split a batched calculation across two owned processes/devices using explicit transfer and combine the results.
⬜5.8.5.1Implement
Partition an integer affine batch between two owned processes or admitted devices, transfer buffers explicitly and concatenate results into the exact single-process reference output.
⬜5.8.5.2Acceptance
Check sharded ownership and explicit transfer/completion between two admitted CPU/GPU endpoints, rejecting an unsupported route and recording staging; Intel GPU execution follows its backend qualification.
⬜5.8.5.3Guide
Publish a self-contained guide at guides/m5/#example-5 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜5.9Cumulative verification
⬜5.9.1Example replay
Run every admitted example from M0 through M5 and report compile, execution, numerical and refusal outcomes separately for each required target.
⬜5.9.2Meaningful tests
Review missing branches and independent oracles, expand Hypothesis and regression cases around observed risks, and remove redundant tests without hiding uncovered behavior.
⬜5.9.3Coverage evidence
Publish line and branch coverage with denominator, exclusions, target and unexecuted paths, never treating 100% host coverage as complete feature or hardware support.
⬜5.9.4Documentation evidence
Build all guides and links, execute available code examples, and attach versioned receipts before upgrading planned or experimental claims.
⬜6M6 Text
Use typed code units and explicit text indexing for strings, collections and tokenization.
⬜6.1krn.unicode and krn.data — Text and collections
Memory/atomic primitives; device exceptions for requested errors.
✅6.1.1Initial text
Initial strings, columns, hashes and collections exist with per-target limits; the new Unicode contract remains unverified.
✅6.1.2Code unit contractDecision
Use a Python-like text facade whose len and indexing count Unicode code points over explicit UTF-8/16/32 code-unit views; grapheme indexing is explicit and str is not a literal Vector[utf8] alias.
Read [165]
⬜6.1.3UTF-8/16/32
Implement validation and transcoding with explicit code-unit/scalar/grapheme distinctions, endianness, surrogates and invalid-input rules.
⬜6.1.3.1UTF-8 validationContract
Reject overlong sequences, isolated continuations, surrogate encodings and values beyond U+10FFFF with exact source byte positions.
Read [167]
⬜6.1.3.2UTF-16 validationContract
Decode paired surrogates and reject incomplete or isolated pairs under strict policy while keeping byte order explicit.
Read [167]
⬜6.1.3.3UTF-32 validationContract
Validate scalar bounds and reject surrogate values under strict policy with explicit byte order and BOM handling.
Read [167]
⬜6.1.3.4TranscodingContract
Convert admitted encodings with explicit strict, replace and ignore consumption rules and source positions in every decoding error.
⬜6.1.4Streaming cases
⬜6.1.5Tokenization
Select one tokenizer vocabulary and normalization version, implement its documented preprocessing and tokenization rules, and require exact whole-input token IDs before optimizing execution.
⬜6.1.5.1Tokenizer specificationContract
Define vocabulary digest, regex dialect, Unicode version, normalization, added tokens and offset mapping in a reproducible TokenizerSpec.
⬜6.1.5.2First tokenizerContract
Match one declared tokenizer over whole documents with exact IDs and many-to-many source span mappings before parallelizing it.
⬜6.1.5.3Streaming tokensContract
Retain unresolved regex and merge context across arbitrary chunk boundaries and avoid claiming bounded memory unless the chosen tokenizer proves it.
⬜6.1.6Column operations
Specify offsets, null masks, null versus NaN, output capacity and string/column ownership; make public launch examples run.
⬜6.1.7Sets and maps
Finish portable insert/find/erase and load-factor/capacity semantics; validate publication under contention.
⬜6.1.8Multisets and sketches
Add counters, Bloom filters and distinct-count estimates with explicit error contracts. Compare with cuCollections.
Read [48]
⬜6.1.9Offset invariants
Validate N+1 u32/u64 document offsets in encoding code units with owner-relative bounds, empty documents and independent null masks, rejecting overflow or boundaries that split an encoded character.
# Same three documents in different storage encodings. documents = ["", "é", "𝄞"] utf8_offsets = [0, 0, 2, 6] utf16_offsets = [0, 0, 1, 3] utf32_offsets = [0, 0, 1, 2] # Splitting the UTF-8 bytes of é into [0, 1, 2] is invalid text.⬜6.1.10Normalization
Version Unicode normalization, segmentation and case-folding data and distinguish normalization from byte-preserving transcoding.
⬜6.1.10.2Case and propertiesContract
Implement locale-independent lower, upper, casefold and character properties against a declared Python-compatible Unicode version.
Read [165]
⬜6.1.10.3DecompositionContract
Implement canonical and compatibility decomposition with combining-class reordering and conformance fixtures.
Read [169]
⬜6.1.10.4CompositionContract
Implement NFC and NFKC composition with blocking rules and retain unresolved combining sequences across streaming boundaries.
Read [169]
⬜6.1.10.5Grapheme boundariesContract
Implement a named UAX29 extended-grapheme profile with official boundary fixtures while keeping word tokenization a separate operation.
Read [168]
⬜6.1.10.6Custom profilesContract
Represent cutok-style Unicode versions, normalization and boundary tailoring in typed immutable profiles included in cache identity.
⬜6.1.11Python textContract
Match Python indexing, slicing and text helpers on valid decoded text while keeping storage views and optional tailoring explicit.
s = "Aé𝄞e\u0301" assert len(s) == 5 # Python code points assert len(s.encode("utf-8")) == 10 # UTF-16 has 6 units; UTF-32 has 5; graphemes have 4.⬜6.1.11.1Text indexingContract
Implement code-point len, negative indexes and slices with the same results as Python str and no implicit normalization.
⬜6.1.11.2Encoded viewsContract
Expose UTF-8, UTF-16 and UTF-32 views with code-unit indexing and distinguish invalid raw storage from validated text.
⬜6.1.11.3Index accelerationContract
Build optional code-point checkpoints without changing semantics and invalidate cached boundaries when mutable storage changes.
⬜6.1.11.4Helper inventoryContract
Inventory find, count, startswith, endswith, split, join, replace, strip and classification against Python signatures before assigning one bounded operation per leaf.
Read [165]
⬜6.1.11.5Surrogate policyContract
Preserve the distinction between Python strings containing isolated surrogates and strict Unicode scalar text, with explicit surrogatepass or surrogateescape profiles.
Read [167]
⬜6.2Five examples
⬜6.2.1Unicode round trip
Transcode UTF-8, UTF-16 and UTF-32 payloads without changing valid scalar values.
⬜6.2.1.1Implement
Transcode UTF-8, UTF-16 and UTF-32 payloads without changing valid scalar values.
⬜6.2.1.2Acceptance
Cover multibyte characters, surrogate pairs, endian representation and explicit malformed-input policy. Check code-point, code-unit and grapheme counts for Aé𝄞e plus a combining acute accent.
⬜6.2.1.3Guide
Publish a self-contained guide at guides/m6/#example-1 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜6.2.2Document columns
Create a sequence of strings from a contiguous payload and u32/u64 offsets.
⬜6.2.2.1Implement
Create a sequence of strings from a contiguous payload and u32/u64 offsets.
⬜6.2.2.2Acceptance
Cover empty documents, nonmonotone offsets, overflow and payload bounds with exact byte reconstruction. Verify empty documents, u32/u64 offsets, nonzero-base slices and rejection of offsets splitting an encoded character.
⬜6.2.2.3Guide
Publish a self-contained guide at guides/m6/#example-2 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜6.2.3Text indexing
Return code-point and grapheme slices from the same multilingual string.
⬜6.2.3.1Implement
Return code-point and grapheme slices from the same multilingual string.
⬜6.2.3.2Acceptance
Show why code-unit offsets differ and validate against the pinned Unicode segmentation data.
⬜6.2.3.3Guide
Publish a self-contained guide at guides/m6/#example-3 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜6.2.4Streaming tokenizer
Tokenize a document split across arbitrary byte chunks.
⬜6.2.4.1Implement
Tokenize a document split across arbitrary byte chunks.
⬜6.2.4.2Acceptance
Match whole-input token IDs across arbitrary chunks by buffering unresolved normalization and token boundaries until safe emission, with documented input limits rather than a constant-memory promise.
⬜6.2.4.3Guide
Publish a self-contained guide at guides/m6/#example-4 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜6.2.5Text collections
Compute unique tokens, counts and a documented probabilistic sketch over document batches.
⬜6.2.5.1Implement
Compute unique tokens, counts and a documented probabilistic sketch over document batches.
⬜6.2.5.2Acceptance
Check exact collections against Python references and sketch error separately from determinism.
⬜6.2.5.3Guide
Publish a self-contained guide at guides/m6/#example-5 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜6.3Cumulative verification
⬜6.3.1Example replay
Run every admitted example from M0 through M6 and report compile, execution, numerical and refusal outcomes separately for each required target.
⬜6.3.2Meaningful tests
Review missing branches and independent oracles, expand Hypothesis and regression cases around observed risks, and remove redundant tests without hiding uncovered behavior.
⬜6.3.3Coverage evidence
Publish line and branch coverage with denominator, exclusions, target and unexecuted paths, never treating 100% host coverage as complete feature or hardware support.
⬜6.3.4Documentation evidence
Build all guides and links, execute available code examples, and attach versioned receipts before upgrading planned or experimental claims.
⬜7M7 Sparse algebra
Separate sparse storage, analysis, products and convergence before exposing reusable sparse solvers.
⬜7.1krn.sparse
⬜7.1.1Formats
Define COO and CSR ownership, index widths, sortedness, duplicates and empty rows before adding format conversions.
⬜7.1.2Sparse products
Implement SpMV and SpMM with explicit accumulation order and tolerance for duplicates and high-contention rows.
⬜7.1.3Analysis reuse
Separate symbolic sparsity analysis from numeric values and invalidate cached plans when structure changes.
⬜7.1.4Iterative solvers
Implement CG for SPD operators and restarted GMRES for general operators with residuals against the original matrix and bounded memory.
⬜7.1.4.1Conjugate gradients
Implement bounded-memory CG for declared SPD operators with independently recomputed residuals and explicit breakdown.
⬜7.1.4.2Restarted GMRES
Implement restarted GMRES with a bounded basis, specified orthogonalization, true-residual stopping and stagnation status.
⬜7.1.5Preconditioners
Provide diagonal and incomplete-factor preconditioners with explicit breakdown and setup-versus-iteration costs.
⬜7.1.5.1Jacobi
Implement diagonal preconditioning with zero-diagonal diagnostics and separate setup cost.
⬜7.1.5.2Incomplete LU
Implement ILU with explicit fill policy, pivot treatment, breakdown and reusable symbolic analysis.
⬜7.1.6Sparse solves
Separate symbolic analysis, factorization and solve reuse. Bound fill and workspace; for iterative solves expose preconditioner, convergence and stagnation. Reuse across different shifts requires proof, not matching shapes.
⬜7.1.6.1Symbolic factors
Expose reusable symbolic analysis keyed by sparse structure.
⬜7.1.6.2Numeric factors
Compute sparse numeric factors with explicit fill, pivot and workspace bounds.
⬜7.1.6.3Direct solves
Solve from sparse numeric factors and invalidate them when values change.
Read [100]
⬜7.1.7Sparse primitives
Benchmark implemented SpMV/SpMM against matched vendor paths using the same format, dtype, duplicate semantics and conversion accounting.
⬜7.1.8Complex products
Implement complex sparse products and conjugation under the same structural and accumulation contracts as real sparse operations.
⬜7.2Five examples
⬜7.2.1Sparse conversion
Convert duplicate-containing COO data into canonical CSR.
⬜7.2.1.1Implement
Convert duplicate-containing COO data into canonical CSR.
⬜7.2.1.2Acceptance
Check empty rows, index widths, duplicate policy and round-trip dense values.
⬜7.2.1.3Guide
Publish a self-contained guide at guides/m7/#example-1 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜7.2.2Sparse product
Compute SpMV and SpMM with skewed row lengths and multiple RHS.
⬜7.2.2.1Implement
Compute SpMV and SpMM with skewed row lengths and multiple RHS.
⬜7.2.2.2Acceptance
Compare dense references and record floating accumulation sensitivity separately from structural correctness.
⬜7.2.2.3Guide
Publish a self-contained guide at guides/m7/#example-2 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜7.2.3Preconditioned CG
Solve a generated SPD sparse system with and without diagonal preconditioning.
⬜7.2.3.1Implement
Solve a generated SPD sparse system with and without diagonal preconditioning.
⬜7.2.3.2Acceptance
Record true residual, setup cost and iterations and exercise a constructed negative-curvature or breakdown case without claiming CG certifies arbitrary inputs as SPD.
⬜7.2.3.3Guide
Publish a self-contained guide at guides/m7/#example-3 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜7.2.4Restarted GMRES
Solve a nonsymmetric sparse system with a bounded Krylov basis.
⬜7.2.4.1Implement
Solve a nonsymmetric sparse system with a bounded Krylov basis.
⬜7.2.4.2Acceptance
Exercise convergence, stagnation, restart and zero RHS without silently changing tolerances.
⬜7.2.4.3Guide
Publish a self-contained guide at guides/m7/#example-4 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜7.2.5Pattern reuse
Reuse symbolic analysis for changed values on an unchanged sparse pattern.
⬜7.2.5.1Implement
Reuse symbolic analysis for changed values on an unchanged sparse pattern.
⬜7.2.5.2Acceptance
Reject pattern changes and compare fresh versus reused numeric factorization results.
⬜7.2.5.3Guide
Publish a self-contained guide at guides/m7/#example-5 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜7.3Cumulative verification
⬜7.3.1Example replay
Run every admitted example from M0 through M7 and report compile, execution, numerical and refusal outcomes separately for each required target.
⬜7.3.2Meaningful tests
Review missing branches and independent oracles, expand Hypothesis and regression cases around observed risks, and remove redundant tests without hiding uncovered behavior.
⬜7.3.3Coverage evidence
Publish line and branch coverage with denominator, exclusions, target and unexecuted paths, never treating 100% host coverage as complete feature or hardware support.
⬜7.3.4Documentation evidence
Build all guides and links, execute available code examples, and attach versioned receipts before upgrading planned or experimental claims.
⬜8M8 Mixed precision algebra
Ship solver families independently and close the versioned forward-operation inventory before claiming full parity.
⬜8.1Mixed precision
⬜8.1.1Stage policy
Separate state, panel, triangular, product operand, accumulation, output, residual and orthogonalization precision using flat typed options and operation-level overrides.
⬜8.1.2Prepared operands
Reuse prepared operands only while source values, pivot permutation, scales and layout remain unchanged, invalidating or transforming them after each affected update or row swap.
⬜8.1.5Packed formats
Validate NVFP4 and MXFP8 packing, block scales, alignment, edge blocks and target architecture instead of treating formats as simple casts.
⬜8.1.5.2MXFP8 layout
Validate MXFP8 block scales, packing, alignment, edge blocks and target support.
⬜8.1.6Error separation
Measure error against original operands and reconstructed quantized operands separately to isolate quantization from product arithmetic.
⬜8.1.7Pivoting
Apply partial-pivot LU row swaps to the entire required panel, trailing matrix and prior factors rather than copying benchmark no-pivot assumptions.
⬜8.1.8SPD preservation
Use symmetry-preserving equilibration for Cholesky and report lost positive definiteness without hidden diagonal regularization.
⬜8.1.9Refinement
Report backward error, forward error when known, factor residual, convergence and stagnation while retaining the original matrix for residual evaluation.
⬜8.1.10Failure policy
Keep fixed-precision experiments free of silent fallback and record every explicitly requested adaptive promotion with its cause and realized precision.
⬜8.1.11Multiple RHS
Start restarted GMRES refinement per RHS with shared factors and batched products, reserving true block GMRES for a separately validated algorithm.
⬜8.1.12Plan reuse
Distinguish execution plans from prepared values and key reuse by architecture, toolchain/library, algorithm, shape, layout, workspace, numerical policy and input mutation identity.
⬜8.1.13Source auditResearch
Pin and inspect OpenMxP, MAGMA, ECRC and NVIDIA samples for licenses, no-pivot assumptions, zero-tolerance selectors and actual executed precision before adapting them.
⬜8.1.14Algorithm sketch
Keep orchestration readable while each operation carries an explicit precision contract.
# Algorithm sketch — proposed operations, not executable API. for panel, trailing in block_columns(A): factor = factor_panel(panel, dtype=panel_dtype) values, scales = prepare(factor, dtype=update_dtype) update(trailing, values, scales, acc=acc_dtype) x = solve_factors(factors, b) r = residual(original_A, x, b, dtype=residual_dtype)⬜8.1.15Quantization recipes
Separate storage formats from scale-selection, rounding and operand-role recipes, recording orientation-dependent quantization and stochastic-rounding requirements.
⬜8.1.16Failure contract
Define fixed-precision failure and explicitly requested adaptive promotion before solver implementation, including singularity, overflow, stagnation and nonconvergence outcomes.
Read [110] [114] [115] [122] [125] [126] [128] [129] [130] [131] [132] [133] [134]
⬜8.2krn.linalg — Dense sparse and mixed precision
Requires M4 reusable dense factors and triangular solves, complex arithmetic where needed and independent residual evaluation; sparse branches alone depend on M7.
⬜8.2.1LU and solves
Extend the M4 LU factorization to stage-selectable precision while retaining pivot and reusable-factor contracts.
⬜8.2.2Iterative refinement
Specify low-precision factorization, higher-precision residuals, convergence criteria and explicit fallback/refusal.
⬜8.2.3Solver building blocks
Expose small reusable solver contracts before implementing advanced algorithms. Start with tested vendor/library adapters where suitable; each adapter must report precision, layout and failure behavior.
⬜8.2.3.1Cholesky
Extend the M4 Cholesky factorization with stage-selectable updates and symmetry-preserving scaling.
Read [95]
⬜8.2.3.2Pivoted QR
Implement column-pivoted rank-revealing QR using the blocked QR kernels with an explicit permutation and rank threshold.
Read [97]
⬜8.2.3.3SVD
Implement bounded small projected SVD with rank thresholds, complex support and nonconvergence diagnostics for contour and randomized methods.
Read [98]
⬜8.2.3.4Small eigensystems
Support reduced standard/generalized problems with residual diagnostics. Do not replace a general operator with a Hermitian solver. Infinite eigenvalues and singular pencils remain explicitly scoped.
Read [99]
⬜8.2.4Other math libraries
Add FFT, random-number and sorting dispatch when a real workflow needs them; verify selected and composed paths under one interface.
⬜8.3Selected spectra
⬜8.3.1Blocked QR
Keep Householder construction and sensitive norms in higher precision while testing low-precision trailing updates for orthogonality and reconstruction.
⬜8.3.1.1Householder kernels
Implement portable blocked Householder QR with stable norms and orthogonality/reconstruction checks.
⬜8.3.1.2Mixed updates
Add selectable low-precision reflector updates to the verified Householder implementation and report their extra error.
⬜8.3.2Randomized SVD
Expose rank, oversampling, seed and power iteration controls for a distinct approximate SVD with high-precision orthogonalization and a small projected SVD.
⬜8.3.3Selected eigenpairs
Build block subspace and shift-invert methods with residual and subspace convergence criteria rather than claiming a fast solve supplies a full eigendecomposition.
⬜8.3.4Conditioning
Avoid normal-equation SVD shortcuts and test clustered values, rank deficiency and slow spectral decay with independent references.
⬜8.4Forward parity
✅8.4.1Forward firstDecision
Target torch.linalg forward behavior for shapes, dtypes, batching and errors before adding autograd, keeping intentionally different Pythonic contracts explicit.
⬜8.4.2Operation inventory
Pin a PyTorch reference version and enumerate every public torch.linalg operation, overload and precision path with implemented, refused or pending status.
⬜8.4.3Derived operations
Build inverse, selected inverse columns, determinant, slogdet and condition/rank estimates from reusable factors with overflow and singularity contracts.
⬜8.4.3.1Inverse
Compute full or selected inverse columns by solving against explicit identity columns with factor reuse.
⬜8.4.3.2Determinants
Compute determinant and slogdet from reusable factors with pivot parity and singular/overflow handling.
⬜8.4.3.3Condition estimates
Estimate condition numbers under a documented norm and report the estimator’s limits.
⬜8.4.3.4Rank estimates
Estimate numerical rank using a justified threshold tied to matrix scale, dtype and algorithm.
⬜8.4.4Full decompositions
Implement full QR, SVD, symmetric and general eigensolvers with reconstruction, orthogonality and invariant-subspace criteria before claiming parity.
⬜8.4.4.1Full QR
Expose full and reduced QR from stable Householder kernels with shape and orthogonality checks.
⬜8.4.4.2Full SVD
Implement full and thin SVD with complex conjugation, nonconvergence and invariant-subspace checks.
⬜8.4.4.3Hermitian spectra
Implement Hermitian eigensolves with triangle, ordering and repeated-eigenspace contracts.
⬜8.4.4.4General spectra
Implement general eigensolves with complex pairs, non-normality and defective-case diagnostics.
⬜8.4.5Remaining operations
Cover LDL and its solve, least squares, pseudoinverse, polar, matrix powers and matrix functions only if present in the pinned inventory and validate each domain separately.
⬜8.4.5.1LDL
Implement pivoted LDL factors and solves with explicit block-pivot and inertia conventions.
⬜8.4.5.2Least squares
Implement least squares with rank-deficiency policy and residual contracts using QR or SVD.
⬜8.4.5.3Pseudoinverse
Implement the Moore–Penrose pseudoinverse with explicit rank cutoff and four identity checks.
⬜8.4.5.4Polar
Implement polar factors with rectangular and rank-deficient conventions from the pinned reference inventory.
⬜8.4.5.5Matrix powers
Implement integer matrix powers with zero and negative exponent behavior and singularity handling.
⬜8.4.5.6Matrix functions
Inventory each matrix-function family in the pinned reference and split its domain, algorithm and acceptance tasks before implementation.
⬜8.4.6Autograd boundaryResearch
Reserve factor reuse and transpose/conjugate solves for later gradient rules without treating approximate rounded factors as exact derivatives.
⬜8.4.6.1Implicit solvesResearch
Study implicit solve differentiation through transpose/conjugate solves with separate forward and gradient accuracy requirements.
⬜8.4.6.2Factor adjointsResearch
Study operation-specific LU, Cholesky and QR adjoints instead of reusing solve gradients for factor outputs.
⬜8.4.6.3Spectral derivativesResearch
Specify repeated-spectrum, rank-change and near-singularity restrictions before admitting eigenvalue or SVD gradients.
⬜8.4.6.4Framework adaptersResearch
Design custom JVP/VJP integration without exposing private runtime state or making forward parity depend on autograd.
Read [124]
⬜8.5Five examples
⬜8.5.1Scaled trailing update
Compute D=C−UVᵀ with FP8 operands and FP32 accumulation/state before trying NVFP4.
⬜8.5.1.1Implement
Compute D=C−UVᵀ with FP8 operands and FP32 accumulation/state before trying NVFP4.
⬜8.5.1.2Acceptance
Measure total and reconstructed-input arithmetic error including preparation time; unavailable target combinations refuse.
⬜8.5.1.3Guide
Publish a self-contained guide at guides/m8/#example-1 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜8.5.2Refined LU solve
Solve pivot-requiring batches with selectable update precision and multiple RHS using reusable factors.
⬜8.5.2.1Implement
Solve pivot-requiring batches with selectable update precision and multiple RHS using reusable factors.
⬜8.5.2.2Acceptance
Report pre/post-refinement error, factor residual, convergence, actual precision and explicit breakdown.
⬜8.5.2.3Guide
Publish a self-contained guide at guides/m8/#example-2 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜8.5.3Mixed Cholesky
Solve SPD matrices using high-precision panels and low-precision trailing updates.
⬜8.5.3.1Implement
Solve SPD matrices using high-precision panels and low-precision trailing updates.
⬜8.5.3.2Acceptance
Sweep controlled conditioning, verify symmetry-preserving scales and report loss of positive definiteness.
⬜8.5.3.3Guide
Publish a self-contained guide at guides/m8/#example-3 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜8.5.4QR and low rank
Build blocked QR and a distinct randomized rank-r SVD from shared precision-aware products.
⬜8.5.4.1Implement
Integrate the completed blocked QR and randomized rank-r SVD APIs using shared precision-aware products.
⬜8.5.4.2Acceptance
Check reconstruction, orthogonality, truncation error and seeded repeatability on slowly decaying spectra.
⬜8.5.4.3Guide
Publish a self-contained guide at guides/m8/#example-4 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜8.5.5Forward parity ledger
Run representative full SVD, eig, LDL, inverse and least-squares calls from the pinned torch.linalg inventory.
⬜8.5.5.1Implement
Execute existing full SVD, eig, LDL, inverse and least-squares implementations from the pinned inventory and record pending or refused entries without implementing algorithms inside the example.
⬜8.5.5.2Acceptance
Compare values or invariant subspaces as appropriate and expose unsupported operations instead of claiming complete parity.
⬜8.5.5.3Guide
Publish a self-contained guide at guides/m8/#example-5 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜8.6Cumulative verification
⬜8.6.1Example replay
Run every admitted example from M0 through M8 and report compile, execution, numerical and refusal outcomes separately for each required target.
⬜8.6.2Meaningful tests
Review missing branches and independent oracles, expand Hypothesis and regression cases around observed risks, and remove redundant tests without hiding uncovered behavior.
⬜8.6.3Coverage evidence
Publish line and branch coverage with denominator, exclusions, target and unexecuted paths, never treating 100% host coverage as complete feature or hardware support.
⬜8.6.4Documentation evidence
Build all guides and links, execute available code examples, and attach versioned receipts before upgrading planned or experimental claims.
⬜9M9 Contour eigenvalues
Deliver SS–Rayleigh–Ritz from shifted solves, moments and stable projection with honest completeness and failure reports.
⬜9.1krn.linalg.contour — Sakurai–Sugiura
Requires complex types, dense/sparse operators, shifted solves, orthogonalization, small eigensolvers and numerical diagnostics.
⬜9.1.1Sakurai–Sugiura
Build shifted solves, contour quadrature, moments and eigenpair extraction as separate tasks.
⬜9.1.1.1Eigenpair validation
Check residuals, convergence, missing/spurious eigenpairs and repeated/clustered eigenvalues on known problems.
⬜9.1.1.2Target precision
Evaluate the f64 requirement early. Lower precision on Apple cannot silently stand in for a requested f64 algorithm.
Read [46]
⬜9.1.2Choose the first solverDecision
Implement SS–Rayleigh–Ritz within the declared Hermitian/SPD scope and retain SS–Hankel as a separately evaluated alternative.
⬜9.1.2.1Define results
Eigenvalues, vectors/subspaces, residuals, convergence diagnostics and inclusion/completeness status. Small residuals alone do not prove every eigenvalue was found.
⬜9.1.2.2Bound scope
Start SS–Rayleigh–Ritz with real symmetric or complex Hermitian A and positive-definite B, including B=I; treat general nonsymmetric pencils, singular B and infinite eigenvalues as separately gated extensions.
⬜9.1.2.3Expose useful controls
Region, quadrature accuracy, block size, moment count, rank threshold, residual tolerance and memory/solve budgets. Hide launch tuning below the algorithm API.
Read [70]
⬜9.1.3Complete foundations
Missing factorizations must be visible dependencies.
⬜9.1.3.1Complex arithmetic
Products, division, conjugation and exceptional values; complex64/complex128 target capabilities. Float64 availability limits the latter.
⬜9.1.3.2Shifted solves
Pivoted LU, triangular solves and multiple RHS. Reuse a factorization within each shift; sparse solves require ordering/fill budgets or preconditioners.
⬜9.1.3.2.1Dense shifts
Adapt reusable complex LU and triangular solves to shifted dense operators with factor reuse per node.
⬜9.1.3.2.2Sparse shifts
Adapt complex sparse products and reusable sparse factors to shifted operators with explicit fill and workspace limits.
⬜9.1.3.4Mixed precision
Refine shifted solves using residuals against the original operator and promote only under an explicit adaptive policy, reporting failure without promotion in fixed-precision runs.
Read [70]
⬜9.1.4Build the pipeline
Independent stages compose one solver.
⬜9.1.4.1Contour and quadrature
Generate nodes/weights with normalized coordinates, orientation and scaling. Conjugate symmetry is valid only when operators and contour justify it.
⬜9.1.4.2Probe subspace
Use seeded block probes with configurable width and oversampling, explaining why a scalar probe cannot recover full repeated-eigenvalue multiplicity.
⬜9.1.4.3Solve shifts
Solve (z B − A) X = B V for each quadrature node using reusable shifted factors and block probes; B=I is an explicit fast path, and each solve records its original-system residual.
⬜9.1.4.4Accumulate moments
Accumulate block moments with ζj=(zj−γ)/ρ and quadrature weights approximating dz/(2πi), recording node order, scaling and accumulator precision.
⬜9.1.4.5Project
Extract a rank-revealing basis from block moments, form Qᴴ A Q and Qᴴ B Q and solve the reduced generalized problem without assuming the projected B is identity.
⬜9.1.4.5.1Moment rank
Extract a rank-revealing basis from block moments with a recorded singular-value threshold.
⬜9.1.4.5.2Projected matrices
Form Qᴴ A Q and Qᴴ B Q with explicit accumulation and Hermitian error checks.
⬜9.1.4.5.3Reduced solve
Solve the small generalized Hermitian problem and report rank or definiteness failures.
⬜9.1.4.5.4Vector recovery
Recover original-space eigenvectors and normalize them under the declared B inner product.
⬜9.1.4.6Filter and adapt
Use contour membership, residual and spurious-mode criteria. Increase resources under a hard budget; report boundary/completeness ambiguity.
Read [70]
⬜9.1.5Prove the method
Small independent dense eigensolutions first, then SLEPc CISS comparisons.
⬜9.1.5.1Known spectra
Empty region, one root, clustered/repeated roots and conjugate pairs. Compare invariant subspaces for degeneracy, not vector signs/phases.
⬜9.1.5.2Difficult operators
Test nearly singular shifts and eigenvalues near/on the contour within the Hermitian/SPD scope, rejecting nonsymmetric and defective inputs through the unsupported-scope path.
⬜9.1.5.3Check equations
Document norm-scaled ||Ax−λBx||, shifted-solve residuals and rank sensitivity. Vary probes and quadrature independently.
⬜9.1.5.4Measure tradeoffs
Complex64, mixed refinement and complex128 where supported; time-to-validated-solution, peak memory and solve work, not GEMM throughput alone.
Read [70]
⬜9.1.6Scale after correctness
Parallelize contour nodes before one factorization.
⬜9.1.6.1Budget storage
Factorization fill, RHS blocks, moments and scratch. Stream moment accumulation when retaining every X_j is too costly.
⬜9.1.6.2Checkpoint nodes
Checkpoint interrupted runs on owned devices using input, contour, probe, precision and node identities and apply each completed contribution exactly once.
⬜9.1.6.3Prove the final goal
Publish correctness limits, completeness evidence and cost for dense/sparse problems. Fast primitives alone do not complete this milestone.
Read [96]
Read [70]
⬜9.1.7z-ParesResearch
Locate licensed historical sources if available and distinguish the documented Trilinos/Belos implementation from unverified language or release claims.
Read [142]
⬜9.1.8Residual contract
Define normalized generalized eigenpair residuals against original A and B, boundary classification and acceptance thresholds before filtering candidates.
⬜9.2Five examples
⬜9.2.1Known spectrum
Recover selected eigenpairs of a diagonal Hermitian matrix inside a chosen contour.
⬜9.2.1.1Implement
Recover selected eigenpairs of a diagonal Hermitian matrix inside a chosen contour.
⬜9.2.1.2Acceptance
Compare known eigenvalue counts, residuals and excluded boundary points.
⬜9.2.1.3Guide
Publish a self-contained guide at guides/m9/#example-1 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜9.2.2Generalized SPD pencil
Solve A x=λ B x for Hermitian A and positive-definite B.
⬜9.2.2.1Implement
Solve A x=λ B x for Hermitian A and positive-definite B.
⬜9.2.2.2Acceptance
Check B-orthogonality and generalized residuals against an independent dense eigensolver.
⬜9.2.2.3Guide
Publish a self-contained guide at guides/m9/#example-2 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜9.2.3Clustered spectrum
Recover a clustered or repeated eigenspace with adaptive probe width and quadrature.
⬜9.2.3.1Implement
Recover a clustered or repeated eigenspace with adaptive probe width and quadrature.
⬜9.2.3.2Acceptance
Compare subspaces and rank diagnostics; a small residual alone cannot certify completeness.
⬜9.2.3.3Guide
Publish a self-contained guide at guides/m9/#example-3 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜9.2.4Difficult shifts
Run a contour close to eigenvalues with deliberately weak low-precision shifted factors.
⬜9.2.4.1Implement
Run a contour close to eigenvalues with deliberately weak low-precision shifted factors.
⬜9.2.4.2Acceptance
Exercise dense and an explicitly admitted sparse shifted operator, recording ill-conditioning, stagnation and selected promotion or failure without silently moving the contour.
⬜9.2.4.3Guide
Publish a self-contained guide at guides/m9/#example-4 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜9.2.5Parallel quadrature
Distribute independent contour nodes across admitted owned devices and resume an interrupted run.
⬜9.2.5.1Implement
Distribute independent contour nodes across admitted owned devices and resume an interrupted run.
⬜9.2.5.2Acceptance
Compare native numerical and subspace outcomes with a serial reference, requiring bitwise equality only under an admitted portable contract and checking bounded memory plus duplicate-node prevention.
⬜9.2.5.3Guide
Publish a self-contained guide at guides/m9/#example-5 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜9.3Cumulative verification
⬜9.3.1Example replay
Run every admitted example from M0 through M9 and report compile, execution, numerical and refusal outcomes separately for each required target.
⬜9.3.2Meaningful tests
Review missing branches and independent oracles, expand Hypothesis and regression cases around observed risks, and remove redundant tests without hiding uncovered behavior.
⬜9.3.3Coverage evidence
Publish line and branch coverage with denominator, exclusions, target and unexecuted paths, never treating 100% host coverage as complete feature or hardware support.
⬜9.3.4Documentation evidence
Build all guides and links, execute available code examples, and attach versioned receipts before upgrading planned or experimental claims.
⬜10M10 Vector search
Prove search recall, latency and memory before building persistent database services.
⬜10.1Vector indexes
Quantization, distances/top-k and collections.
⬜10.1.1Exact search baseline
Implement distances and stable tie handling; create ground truth outside the approximate index.
⬜10.1.2IVF–RaBitQ
Separate training, encoding, list construction, search and reranking. Validate serialization and update behavior.
Read [49]
⬜10.1.3CAGRA-style graph
Separate graph construction from traversal; measure recall/latency/build cost at matched memory.
⬜10.1.4Index cases
Empty lists, duplicate vectors, filtered search, varying query batch and update sequences. Approximation quality is not bitwise equality.
⬜10.1.5Database boundary
Add persistence, ingestion, tenancy and operations only after a buyer needs more than the index.
⬜10.2Five examples
⬜10.2.1Exact neighbors
Compute top-k neighbors for a small reference corpus under explicit distance and tie rules.
⬜10.2.1.1Implement
Compute top-k neighbors for a small reference corpus under explicit distance and tie rules.
⬜10.2.1.2Acceptance
Check empty queries, duplicate vectors and deterministic tie ordering.
⬜10.2.1.3Guide
Publish a self-contained guide at guides/m10/#example-1 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜10.2.2IVF recall
Build IVF with trained coarse centroids and tune probe count against exact neighbors.
⬜10.2.2.1Implement
Build IVF with trained coarse centroids and tune probe count against exact neighbors.
⬜10.2.2.2Acceptance
Report held-out recall, build cost, latency and memory rather than only best-case throughput.
⬜10.2.2.3Guide
Publish a self-contained guide at guides/m10/#example-2 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜10.2.3RaBitQ codec
Encode residual vectors and search an IVF–RaBitQ index with its required correction terms.
⬜10.2.3.1Implement
Encode residual vectors and search an IVF–RaBitQ index with its required correction terms.
⬜10.2.3.2Acceptance
Separate compression error, candidate recall and reranking accuracy on shifted query distributions.
⬜10.2.3.3Guide
Publish a self-contained guide at guides/m10/#example-3 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜10.2.4Graph search
Build and query a CAGRA-style graph with bounded traversal state.
⬜10.2.4.1Implement
Build and query a CAGRA-style graph with bounded traversal state.
⬜10.2.4.2Acceptance
Check disconnected regions, visited-set capacity, concurrency and recall against exact search.
⬜10.2.4.3Guide
Publish a self-contained guide at guides/m10/#example-4 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜10.2.5Index lifecycle
Persist, reload, update and delete records with stable IDs and explicit consistency.
⬜10.2.5.1Implement
Persist, reload, update and delete records with stable IDs and explicit consistency.
⬜10.2.5.2Acceptance
Verify interrupted writes, stale metadata and schema compatibility without inventing a full database first.
⬜10.2.5.3Guide
Publish a self-contained guide at guides/m10/#example-5 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜10.3Cumulative verification
⬜10.3.1Example replay
Run every admitted example from M0 through M10 and report compile, execution, numerical and refusal outcomes separately for each required target.
⬜10.3.2Meaningful tests
Review missing branches and independent oracles, expand Hypothesis and regression cases around observed risks, and remove redundant tests without hiding uncovered behavior.
⬜10.3.3Coverage evidence
Publish line and branch coverage with denominator, exclusions, target and unexecuted paths, never treating 100% host coverage as complete feature or hardware support.
⬜10.3.4Documentation evidence
Build all guides and links, execute available code examples, and attach versioned receipts before upgrading planned or experimental claims.
⬜11M11 Serving
Prove reusable inference primitives and an existing-engine adapter before deciding on a standalone engine.
⬜11.1Attention kernels
⬜11.1.1Attention
Finish forward then backward, with masks, causal/ragged shapes, accumulation policy and numerical validation.
⬜11.2Serving integration
Attention, quantization, async runtime and profiling proved.
✅11.2.1Initial attention
An initial attention example exists; serving integration and the planned performance envelope remain unverified.
⬜11.2.2Inference components
Implement sampling, KV-cache operations and scheduling primitives against an existing engine.
⬜11.2.4General engine decision
Only proceed with a distinct need and ownership for admission, cancellation, model compatibility, memory management and service reliability.
⬜11.2.5Serving startup evidenceVerify
Separate container retrieval, model retrieval, initialization, compilation, loading and first-request completion for one admitted model and serving adapter.
⬜11.2.5.1Container footprintVerify
Record pinned image digests with compressed layers and unpacked bytes while listing host drivers, weights and caches separately and matching base or full dependency scope.
⬜11.2.5.2Startup phasesVerify
Record each startup phase with cache and process state for matched weights, precision, concurrency, memory and output-quality criteria without treating remote-client image size as GPU deployment size.
⬜11.2.5.3Claim boundariesVerify
Prepare publication-ready measured startup and footprint claims from the accepted matched serving evidence without treating this task as publication authority.
⬜11.3Five examples
⬜11.3.1Paged attention
Run attention over variable sequence lengths and paged KV storage.
⬜11.3.1.1Implement
Run attention over variable sequence lengths and paged KV storage.
⬜11.3.1.2Acceptance
Compare dense reference outputs and check masks, tails, cache boundaries and numerical policy.
⬜11.3.1.3Guide
Publish a self-contained guide at guides/m11/#example-1 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜11.3.2Quantized linear layer
Execute an admitted mixed-precision linear layer using reusable packed weights.
⬜11.3.2.1Implement
Execute an admitted mixed-precision linear layer using reusable packed weights.
⬜11.3.2.2Acceptance
Check bias, batch shapes, scale metadata and error versus unquantized weights.
⬜11.3.2.3Guide
Publish a self-contained guide at guides/m11/#example-2 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜11.3.3Continuous batches
Schedule requests with prefill and decode using bounded memory.
⬜11.3.3.1Implement
Schedule requests with prefill and decode using bounded memory.
⬜11.3.3.2Acceptance
Verify fairness, cancellation and token order under variable lengths and admission pressure.
⬜11.3.3.3Guide
Publish a self-contained guide at guides/m11/#example-3 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜11.3.4Engine adapter
Integrate one kernel family into an existing serving engine behind a reversible adapter.
⬜11.3.4.1Implement
Integrate one kernel family into an existing serving engine behind a reversible adapter.
⬜11.3.4.2Acceptance
Compare end-to-end latency, throughput and correctness under matching model and batching settings.
⬜11.3.4.3Guide
Publish a self-contained guide at guides/m11/#example-4 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜11.3.5Recovery load
Run a bounded replay workload with device failure and request cancellation.
⬜11.3.5.1Implement
Run a bounded replay workload with device failure and request cancellation.
⬜11.3.5.2Acceptance
Check capacity recovery, timeout propagation and no reuse of live KV storage.
⬜11.3.5.3Guide
Publish a self-contained guide at guides/m11/#example-5 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜11.4Cumulative verification
⬜11.4.1Example replay
Run every admitted example from M0 through M11 and report compile, execution, numerical and refusal outcomes separately for each required target.
⬜11.4.2Meaningful tests
Review missing branches and independent oracles, expand Hypothesis and regression cases around observed risks, and remove redundant tests without hiding uncovered behavior.
⬜11.4.3Coverage evidence
Publish line and branch coverage with denominator, exclusions, target and unexecuted paths, never treating 100% host coverage as complete feature or hardware support.
⬜11.4.4Documentation evidence
Build all guides and links, execute available code examples, and attach versioned receipts before upgrading planned or experimental claims.
⬜12M12 Backend qualification
Broaden measured support and optimize target lowering without changing the frontend contract.
⬜12.1Additional hardware
Admission probes and capability schema exist.
⬜12.1.1AMD execution
Turn HIP compile coverage into real-device coverage for selected CDNA/RDNA architectures; do not generalize one card to all AMD.
⬜12.1.2Intel backend
Build a real execution path; detection and pyzes telemetry do not count as compilation/runtime support.
Read [105]
⬜12.1.3Apple generations
Validate family-specific matrix/atomic/subnormal behavior on available devices; report untested families explicitly.
⬜12.1.4NVIDIA generations
Qualify advanced instructions, conversion families and noftz forms on actual architectures; retain rental/access dependencies.
⬜12.1.6PyTorch and MLX
Expand qualification of the existing framework-memory adapter across admitted vendors and verify producer lifetime, layout, device identity and completion without creating another DLPack implementation.
Read [40]
⬜12.1.7Vulkan option
Keep as a later backend candidate; require a concrete capability/performance case before adding another maintenance surface.
⬜12.1.8Compiler reuse experimentResearch
Use measured compilation costs to propose one optional alternate-compiler experiment while preserving the Python frontend and accepted numerical contract.
⬜12.1.8.1Bounded proposalResearch
Choose one existing kernel family and state the IR boundary, maintenance cost, license provenance and measurable reason to compare an alternate compiler with the current native path.
⬜12.1.8.2Compiler evidenceVerify
After accepting the bounded proposal, compare correctness, cold and cached compilation, installed dependencies and execution before recommending integration or rejection.
Read [119]
⬜12.2Communication providers
⬜12.2.1NVIDIA communicationContract
Qualify Python host setup and JIT device calls for NCCL and NVSHMEM as separate adapters with symmetric-memory and version requirements.
⬜12.2.1.1NCCL hostContract
Prefer nccl4py with the matching CUDA extra for host communicator and collective setup, verifying admitted Python versions and keeping device linkage separate.
Read [177]
⬜12.2.1.2NVSHMEM setupContract
Use NVSHMEM4Py for processing-element bootstrap and symmetric allocation after verifying native NVSHMEM, CUDA and Python compatibility, correcting stale upstream example spellings before execution.
Read [178]
⬜12.2.1.3NVSHMEM deviceContract
Link device put and signal operations and verify source reuse plus remote visibility on an admitted topology.
⬜12.2.1.4NCCL deviceContract
Probe supported device communication capabilities and verify a minimal device-initiated operation after host window and communicator setup.
⬜12.2.2AMD communicationContract
Qualify RCCL host collectives and experimental device APIs separately from rocSHMEM device operations without assuming wire compatibility with NVIDIA.
⬜12.2.2.1RCCL hostContract
Verify host collective results, streams and failure handling on an owned or separately approved AMD system.
⬜12.2.2.2RCCL deviceContract
Measure the documented device API including any host proxy progress and label the actual data and control paths.
⬜12.2.2.3rocSHMEM setupContract
Initialize processing elements, symmetric heaps and progress resources on admitted AMD hardware before device communication.
⬜12.2.2.4rocSHMEM deviceContract
Verify symmetric-memory put, get and completion against the selected ROCm version and admitted network.
⬜12.2.4Apple communicationContract
Use explicit host-mediated transfers and completion until a documented supported device networking path is admitted.
⬜12.2.5RDMA admissionContract
Probe NIC, GPU, topology, driver, registration and transport support before advertising RDMA or direct peer access.
Read [164]
⬜12.2.6Communication failuresVerify
Test rank loss, timeout, cancellation, partial completion and stale window reuse with bounded cleanup and no silent numerical fallback.
⬜12.3Five examples
⬜12.3.1Backend conformance
Replay the same typed arithmetic and primitive suite on newly admitted AMD and Intel targets.
⬜12.3.1.1Implement
Replay the same typed arithmetic and primitive suite on newly admitted AMD and Intel targets.
⬜12.3.1.2Acceptance
Publish execution evidence separately from generation, compilation and explained refusal.
⬜12.3.1.3Guide
Publish a self-contained guide at guides/m12/#example-1 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜12.3.2Generation changes
Compare the same kernel across available NVIDIA and Apple generations.
⬜12.3.2.1Implement
Compare the same kernel across available NVIDIA and Apple generations.
⬜12.3.2.2Acceptance
Record architecture-specific lowering, numerical differences and explicit guarantee envelopes.
⬜12.3.2.3Guide
Publish a self-contained guide at guides/m12/#example-2 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜12.3.3Framework sharing
Exchange buffers with PyTorch and MLX using supported zero-copy protocols.
⬜12.3.3.1Implement
Exchange buffers with PyTorch and MLX using supported zero-copy protocols.
⬜12.3.3.2Acceptance
Verify framework buffer exchange across admitted providers with exact device identity, layouts, ownership and completion; provider collective and rank-failure acceptance remains in the separate communication qualification tasks.
⬜12.3.3.3Guide
Publish a self-contained guide at guides/m12/#example-3 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜12.3.4Compiler comparison
Compile one fixed frontend kernel through two admitted lowering strategies.
⬜12.3.4.1Implement
Compile one fixed frontend kernel through two admitted lowering strategies.
⬜12.3.4.2Acceptance
Compare semantics, compile time, generated code and uninstrumented performance without moving the numerical contract.
⬜12.3.4.3Guide
Publish a self-contained guide at guides/m12/#example-4 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜12.3.5Portability envelope
Replay portable-subset reductions across all admitted target and compiler combinations.
⬜12.3.5.1Implement
Replay portable-subset reductions across all admitted target and compiler combinations.
⬜12.3.5.2Acceptance
Reject unsupported cases and report failures or untested cells rather than extrapolating universal equality.
⬜12.3.5.3Guide
Publish a self-contained guide at guides/m12/#example-5 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜12.4Cumulative verification
⬜12.4.1Example replay
Run every admitted example from M0 through M12 and report compile, execution, numerical and refusal outcomes separately for each required target.
⬜12.4.2Meaningful tests
Review missing branches and independent oracles, expand Hypothesis and regression cases around observed risks, and remove redundant tests without hiding uncovered behavior.
⬜12.4.3Coverage evidence
Publish line and branch coverage with denominator, exclusions, target and unexecuted paths, never treating 100% host coverage as complete feature or hardware support.
⬜12.4.4Documentation evidence
Build all guides and links, execute available code examples, and attach versioned receipts before upgrading planned or experimental claims.
⬜13M13 Language bindings
Reuse verified Python semantics through narrow native bindings before any browser implementation.
⬜13.1Language bindings
✅13.1.1Python firstDecision
Develop Python first and reuse its compiler/runtime from later Rust and JavaScript packages where practical.
⬜13.1.2Runtime boundary
Specify a versioned ABI for types, shapes, handles, errors, ownership, launch completion and capability queries.
⬜13.1.3Rust package
Expose safe ownership and asynchronous completion in the krn crate without duplicating semantic lowering.
⬜13.1.4JavaScript package
Expose typed buffers and Promise completion from krn.js with explicit Node runtime requirements and deterministic cleanup.
⬜13.1.5Browser scopeResearch
Evaluate WebGPU and browser sandbox constraints separately before claiming browser execution.
⬜13.2Five examples
⬜13.2.1Rust affine
Call a typed returned-array affine kernel from the krn Rust crate.
⬜13.2.1.1Implement
Call a typed returned-array affine kernel from the krn Rust crate.
⬜13.2.1.2Acceptance
Compare Python results and verify ownership on success and error.
⬜13.2.1.3Guide
Publish a self-contained guide at guides/m13/#example-1 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜13.2.2JavaScript affine
Call the same kernel from krn.js in Node with Promise completion.
⬜13.2.2.1Implement
Call the same kernel from krn.js in Node with Promise completion.
⬜13.2.2.2Acceptance
Check typed-buffer offsets, asynchronous failure and deterministic cleanup.
⬜13.2.2.3Guide
Publish a self-contained guide at guides/m13/#example-2 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜13.2.3Shared compiler cache
Reuse compatible compiler artifacts across Python and native bindings.
⬜13.2.3.1Implement
Reuse compatible compiler artifacts across Python and native bindings.
⬜13.2.3.2Acceptance
Reject mismatched ABI, device, numerical policy or artifact format.
⬜13.2.3.3Guide
Publish a self-contained guide at guides/m13/#example-3 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜13.2.4Foreign lifetime
Release host references while a foreign-language launch is in flight.
⬜13.2.4.1Implement
Release host references while a foreign-language launch is in flight.
⬜13.2.4.2Acceptance
Retain storage until completion and detect cancelled or failed execution without double free.
⬜13.2.4.3Guide
Publish a self-contained guide at guides/m13/#example-4 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜13.2.5Binding parity
Run common type, shape and failure fixtures through Python, Rust and JavaScript.
⬜13.2.5.1Implement
Run common type, shape and failure fixtures through Python, Rust and JavaScript.
⬜13.2.5.2Acceptance
Compare documented semantics and capability errors without requiring identical host exception classes.
⬜13.2.5.3Guide
Publish a self-contained guide at guides/m13/#example-5 with source, requirements, expected result, failure example and a tested revision; label the current design as planned until execution evidence exists.
⬜13.3Cumulative verification
⬜13.3.1Example replay
Run every admitted example from M0 through M13 and report compile, execution, numerical and refusal outcomes separately for each required target.
⬜13.3.2Meaningful tests
Review missing branches and independent oracles, expand Hypothesis and regression cases around observed risks, and remove redundant tests without hiding uncovered behavior.
⬜13.3.3Coverage evidence
Publish line and branch coverage with denominator, exclusions, target and unexecuted paths, never treating 100% host coverage as complete feature or hardware support.
⬜13.3.4Documentation evidence
Build all guides and links, execute available code examples, and attach versioned receipts before upgrading planned or experimental claims.
Legend
[ ]open ·[~]active ·[!]blocked ·[x]accepted or decided.2.3.1.4means milestone 2 → feature 3 → task 1 → subtask 4; assign a leaf with its parent context.- Only listed dependencies block readiness; reserve shared files and devices before parallel work.
- Decision asks for a choice; Research needs evidence; Contract defines behavior; Verify checks it.
- Checked decisions record agreement; historical implementation checks require current verification before support claims.
- Proposed APIs and guide examples remain planned until runnable source and target evidence exist.
References
- NVIDIA · Floating-point behavior
- NVIDIA · cuBLAS reproducibility
- NVIDIA · CCCL determinism policies
- LLVM · Floating-point semantics and fast-math flags
- ExBLAS · Reproducible BLAS
- Intel · Conditional numerical reproducibility
- Python · Data model
- Python · Typing
- pytest · Good integration practices
- Hypothesis · Settings, examples and replay
- Hypothesis · Stateful testing
- pytest · Flaky tests
- Meta · TestGen-LLM study
- Agent-authored test oracles · Study and limitations
- GitHub · Larger runner specifications
- GitHub · Runner prices
- GitHub · Billing and included usage
- GitHub · Runner security
- CircleCI · macOS executor
- CircleCI · Credit price list
- CircleCI · Credit billing
- NVIDIA · PTX memory model and atomic instructions
- NVIDIA · cuda::atomic_ref
- NVIDIA · Cooperative groups
- AMD · Atomic operation support
- AMD · HIP language extensions
- AMD · HIP cooperative groups
- Khronos · SYCL atomic_ref
- Khronos · SYCL group functions
- Khronos · SYCL group algorithms
- Intel · oneAPI GPU optimization guide
- Apple · Metal Shading Language specification
- Apple · Metal feature tables
- NVIDIA · Compute Sanitizer
- NVIDIA · Performance measurement
- NVIDIA · CUPTI
- AMD · ROCprofiler SDK
- Intel · Profiling Tools Interfaces
- Apple · GPU counters
- DLPack · Python interchange
- NVIDIA · Runtime compilation
- Jujutsu · Git compatibility
- PyPI · Trusted publishing
- Cargo publishing
- npm · Package-name rules
- Sakurai–Sugiura · Contour-integral eigensolver
- Unicode · UTF encodings
- NVIDIA · cuCollections
- NVIDIA · cuVS algorithm references
- NVIDIA · CUDA Tile
- NVIDIA · CuTe DSL
- AMD · FlyDSL
- TileLang · Overview
- NVIDIA · Tilus
- oneAPI · Level Zero and Sysman bindings
- FlashInfer · Serving kernels
- vLLM · Serving engine
- Can I use · Support presentation
- NVIDIA · Mathematical functions and measured error limits
- GNU MPFR · Correct rounding and floating-point simulation
- MLIR · GPU dialect and compilation pipeline
- GCC · Atomic builtins and memory ordering
- Unified memory
- Tilus shared tensors
- TileLang matmul and staging
- Rich tracebacks
- pytest marker registration
- Vast.ai pricing
- HPC-AI B200 servers
- SLEPc contour spectrum slicing (SS, Ritz and Hankel)
- Tilus layouts
- CUDA feature survey
- NVIDIA · async barriers
- NVIDIA · async copies
- NVIDIA · pipelines
- NVIDIA · cluster launch control
- NVIDIA · green contexts
- NVIDIA · locality domains
- NVIDIA · stream ordered memory allocation
- NVIDIA · cuda graphs
- NVIDIA · programmatic dependent launch
- NVIDIA · lazy loading
- NVIDIA · extended gpu memory
- NVIDIA · dynamic parallelism
- NVIDIA · graphics interop
- NVIDIA · inter process communication
- NVIDIA · virtual memory management
- NVIDIA · compute fabric transport
- NVIDIA · driver entry point access
- NVIDIA · error log management
- Bun rewrite workflow
- Python 3.14 enums
- Sybil Markdown parsers
- Sybil pytest integration
- LAPACK complex linear equations
- SLEPc CISS interface
- LAPACK pivoted QR
- LAPACK SVD
- LAPACK generalized eigensystems
- PETSc linear solver contracts
- Python free threading
- Free threaded extensions
- SYCL unified shared memory
- SYCL math
- Level Zero core programming
- Level Zero build logs
- Level Zero timestamps
- Level Zero IPC
- Level Zero tools
- oneMath source
- oneCCL source
- HIP unsafe floating atomics
- HIP coherence
- rocSOLVER precision support
- rocSOLVER source
- rocSPARSE precision support
- rocSPARSE source
- RCCL
- rocprofv3
- Metal shader validation
- Metal shared events
- Accelerate LAPACK
- MPS LU
- torch
- cuSOLVER
- MAGMA
- MAGMA release
- SLATE
- OpenMxP
- OOC Cholesky
- HPL-MxP
- Three precision IR
- Scaling
- OOC Cholesky paper
- QR
- Randomized SVD
- SS 2003
- CIRR 2007
- Yano 2013
- Yamazaki 2013
- Tadano 2007
- z-Pares
- nvmath Matmul
- nvmath options
- nvmath FP8 example
- nvmath NVFP4 example
- Deferred annotations
- Mojo roadmap
- Mojo GPU introduction
- Mojo TileTensor layouts
- Mojo TileTensor storage
- PyTorch CUDA semantics
- PyTorch MPS environment
- JAX GPU allocation
- NVSHMEM programming model
- NCCL device initiation
- NCCL device API reference
- RCCL device API and GIN
- rocSHMEM
- rocSHMEM RMA
- oneCCL documentation
- oneCCL device communication
- oneCCL C API
- GPUDirect RDMA
- Python Str
- Python Ucd
- Python Codecs
- Uax29
- Uax15
- Uax44
- PyPI project creation
- PyPI name policy
- JAX dtype promotion
- JAX transformation contracts
- PyTorch tensor attributes
- PyTorch broadcasting
- NCCL4Py source and packaging
- NVSHMEM4Py installation and initialization
- MAX kernel hardware requirements
- MAX container variants
- Modular MAX release
- Mojo compilation targets
- MAX custom operations
- MAX license
- Modular component licenses
- MAX serving requirements
- Modular container packaging claim
- Modular Inkwell case study
- Modular kernel benchmarking
- Google Benchmark guide
- Google Benchmark interleaving
- pyperf worker measurements
- PyTorch benchmark utilities
- JAX benchmarking and profiling
- NVIDIA NVBench
- ASV benchmark metrics
- NumPy sum dtype semantics
- Python exception statements
- DLPack tensor structure