This directory is the full reference for tensorcore: the what, the how,
the why, and the where it's going. Top-level files in the repo root
(README.md, ROADMAP.md, CHANGELOG.md, ONBOARDING.md, CONTRIBUTING.md)
are the entry points; everything below goes deeper.
- README.md — the thesis ("CUDA for Apple"), what v0.1 ships, and the relationship to the surrounding projects.
- ONBOARDING.md — 30-second tour, the working set, constraints to know.
- architecture.md — how the library is put together internally: device init, pipeline cache, buffer pool, op dispatch, fallback ladder.
- api_reference.md — every public C symbol, grouped by header, with shapes and dtype rules. Or api_overview.md for the flat one-line-per- symbol map.
- cuda_comparison.md — the explicit tensorcore-vs-CUDA map. If you came from NVIDIA-land, start here.
- ROADMAP.md — what's next and how confident we are.
- releases/0.1.23.md — qualified platforms, ABI changes, upgrade guidance, release artifacts, and known limitations.
- integrating_tensorcore.md — build, install, link via CMake / pkg-config / Python.
- api_reference.md — the C ABI you'll be calling.
- gguf.md + quantized.md — if you're loading a real model and running inference.
- python.md — if you'd rather work in Python.
- troubleshooting.md — when something doesn't work.
- eshkol_integration.md — bridge layout, builtins, opt-in env flag.
- architecture.md — so you understand what the FFI layer is wrapping.
- ROADMAP.md §v0.4 — the consolidation plan that
makes the three Metal backends in
eshkol-platform,quantum_geometric_tensor, andsemiclassical_qllmcollapse to one.
- architecture.md — internals: device, pipeline cache, buffer pool, op dispatch, fallback ladder, autotune.
- dtypes.md — the 10-dtype spectrum, what's native vs emulated, accumulation rules.
- family_gating.md — Apple7..Apple10 detection (Apple11 reserved), per-dtype hardware gates, SDK gates, and how the dispatch picks a path.
- cuda_comparison.md — direct cuBLAS / cuDNN / CUTLASS / NCCL / Triton ↔ tensorcore equivalents.
- tc-cuda/README.md — the tc-cuda v1 CUDA subset
authority: the 55-construct accept-list, the unsupported list, and the
fail-closed policy, all generated from
docs/tc-cuda/subset.v1.json.
- gemm.md —
tc_gemmand friends: tile sizes, kernel variants, env flags, autotune. - attention.md —
tc_attention_forwardand backward: FlashAttention-2 design, D=64 / D=128 paths, causal / GQA / sliding window / ALiBi. - training_kernels.md — RMSnorm, LayerNorm, RoPE, SwiGLU, softmax, AdamW, and fused RMSnorm+GEMV.
- conv2d.md — im2col + GEMM strategy, forward + backward.
- quantized.md — Q4_0 / Q8_0 packed format, GPU quantization, GEMV path, async batching.
- gguf.md — the GGUF v3 reader, metadata helpers, bulk tensor loading, matrix descriptors.
- distributed.md — distributed primitives, single / ring / GLOO backends, the world_size=1 path, TCP baseline, and fork tests.
- transport_auth.md — versioned mutual identity authentication, rank binding, replay behavior, and PSK rotation.
- diloco.md — low-communication outer-loop training for cross-site meshes, plus current implementation status.
- mesh_resource_scheduler.md — the
mesh-wide lease and queue controller for shared hardware such as
cosbox:cuda3090. - python.md — the
tensorcorePython binding, ctypes layout, numpy interop.
- releases/0.1.23.md — current public release contract and qualification matrix.
- release_privacy.md — public-source privacy gate, safe examples, export rules, and Git-history requirements.
- campaigns/tensorcore-finish-20260824/README.md — current production-closure campaign: audited blockers, dependency order, hard gates, hardware matrix, and definition of finished.
- tensorcore_full_capability_campaign.md — ICC-controlled cross-repository program, adapter ownership, implemented decentralized-training baseline, execution waves, and fleet exit gates.
- campaigns/tensorcore-full-capability-20260714/README.md — individual ICC handoff notes for the TensorCore, qLLM, computer_mesh, QGTL, Eshkol, and Selene repository agents.
- research/TENSORCORE_BEYOND_SOTA_CAMPAIGN_2026-07-14.md — current primary-source frontier observatory and benchmark-gate policy.
- research/cuda_on_metal_ecosystem_survey_20260828.md — ICC-grounded ecosystem survey and build/borrow/reject decision for first-party CUDA source/API compatibility on Apple Metal.
- integrating_tensorcore.md — link tensorcore into another C / C++ / Python / CMake project.
- eshkol_integration.md — the Eshkol FFI bridge (drop-in shim, opt-in env flag).
- benchmarks.md — measured TFLOPS and tok/s per shape, dtype, and chip; how to reproduce.
- troubleshooting.md — metallib not found, family gating misfires, dtype-unsupported errors, etc.
- codebase_audit.md — what ICC's deterministic codebase tool sees: file count, call-graph stats, dead-code candidates, ground-truth confirmations of the architecture doc.
- kernels.md — per-file walkthrough of every
.metalkernel: tile layouts, function constants, threadgroup memory budget. - ci_and_scripts.md — what each CI workflow
runs and what every helper script in
scripts/does. - hardware_runner_setup.md — M5/SDK26 self-hosted runner setup and Hardware Evidence preflight runbook.
- hardware_evidence_contribution.md — zero-cost, one-shot M4/M5 evidence handoff from borrowed or contributor hardware without persistent runner registration.
- mesh_resource_scheduler.md — how agents submit shared-resource jobs without killing each other's work.
- inference.md — end-to-end Llama decode step from
GGUF load through
tc_attention_forwardto next-token logits. - training_loop.md — one full transformer-block forward + backward + AdamW; every tensorcore call in order.
- memory_model.md — unified memory, buffer pool, streams, command-buffer batching, threading.
- numerics.md —
rms_scalederror metric, fp32 accumulators, bit-exact guarantees, what the test suite enforces. - faq.md — common confusions answered in one place.
- precision_emulation.md — SF64 / DF64 / FP24 / FP53 precision modes inherited from the eshkol-platform lineage.
- release_process.md — how a release goes from version bump → tag → CI → wheel → GitHub release artifact.
- development_setup.md — zero-to-running guide for a fresh Mac (Apple Silicon path) and for non-Apple platforms (portable CPU only).
- observability.md — runtime introspection:
tc_last_backend, autotune cache, hardware evidence JSON, env knobs. - glossary.md — every term used in the docs and source defined in one place.
- extending.md — kernel-add tutorial with a worked
example (a hypothetical
tc_gelu_forward), worked through all five layers from.metalsource to test.
- ../examples/README.md — what each compilable example demonstrates and how to read them.
- ../tests/README.md — what each default and portable-CPU correctness test covers, including tolerances and skip semantics.
- ../bench/README.md — what each TFLOPS / tok/s harness measures and how to interpret its output.
| What you want to read | Where to look |
|---|---|
| Public C ABI | include/tensorcore/*.h |
| Op dispatch (host) | lib/ops/{gemm,attention,training,conv,quantized}.mm |
| Device init / pipeline cache / buffer pool | lib/core/{device,pipeline_cache,buffer_pool}.mm |
| Autotune | lib/core/autotune.cpp |
| Metal kernels | kernels/metal/*.metal |
| GGUF reader | lib/io/gguf.c |
| Distributed | lib/distributed/{distributed,ring_local}.mm, lib/distributed/{distributed_cpu,gloo_tcp}.cpp |
| Mesh resource scheduler | scripts/mesh_resource_scheduler.py |
| MPS + Accelerate fallbacks | lib/fallback/{mps_gemm.mm,accelerate_gemm.c} |
| M5 / Metal 4 TensorOps | lib/tensorops/tensorops_m5.mm (SDK-gated) |
| Eshkol bridge | eshkol/bridge/tensorcore_codegen.cpp |
| Python binding | python/tensorcore/__init__.py |
| Correctness tests | tests/*.c |
| Benchmarks | bench/*.c |
| Examples | examples/*.c |