Independent systems research software for hardware-native program specialization on AMD Zen.
Single-Zen Research Release · Zen3 / Zen4 / Zen5 · Dual MIT OR source-available proprietary
GitHub ·
Sponsor ·
Research site
CLI (installs the silicera binary):
cargo install silicera-cli
silicera aboutLibraries (add to your Cargo.toml):
[dependencies]
silicera = "0.2"
silicera-runtime = "0.2" # optional: dispatch only
silicera-lab = "0.2" # optional: measurement / tournaments| Crate | crates.io | docs |
|---|---|---|
| silicera | crates.io/crates/silicera | API (GitHub Pages) · docs.rs |
| silicera-runtime | crates.io/crates/silicera-runtime | API · docs.rs |
| silicera-lab | crates.io/crates/silicera-lab | API · docs.rs |
| silicera-cli | crates.io/crates/silicera-cli | docs.rs |
Or build from this repository:
cargo build --release
cargo test --workspaceSilicera treats the physical machine � topology, cache geometry, and measured behavior � as an input to program specialization.
- A portable artifact carries multiple implementation variants (baseline + candidates).
- On a supported host, Silicera discovers CPUID / topology and validates it against AMD Zen knowledge packs.
- Lab tournaments measure candidates with correctness gates and stability checks.
- A Hardware-Native Execution Profile (HNEP) records which variants won for that fingerprint class, plus an optional size-class decision tree.
silicera-runtimeloads the HNEP and dispatches cheaply. On fingerprint mismatch it falls back to baseline (or errors under--strict-machine).
generic code
�
â–¼
machine fingerprint + knowledge packs
�
�������������������������������
â–¼ â–¼ â–¼
variant A variant B baseline
� � �
�������������������������������
â–¼
measure · gate · select
�
â–¼
.hnep ��► runtime dispatch
(mismatch → baseline)
Not affiliated with, endorsed by, or certified by Advanced Micro Devices, Inc. AMD, Ryzen, and Zen are trademarks of Advanced Micro Devices, Inc.
-march=native, PGO, multiversioning, BOLT, and classical autotuners each capture part of the hardware story. Silicera asks a narrower question:
If machine identity and measured cache/topology behavior are first-class inputs, can portable binaries still dispatch machine-appropriate variants � with correctness gates, statistical skepticism, and safe fallbacks?
| Approach | Optimizes for | Silicera difference |
|---|---|---|
-march=native |
ISA / microarch at compile time | Specialization from runtime-measured machine + profile |
| LLVM PGO / BOLT | Profiled control flow / layout | HNEP binds winners to a fingerprint class |
| CPU multiversioning | Feature leaves (AVX…) | Decision trees over working-set vs cache geometry |
| ATLAS / FFTW | Search at install/build | Portable artifact + mismatch → baseline |
See docs/research/silicera-paper.md and docs/INDEX.md.
- Review retraining with
silicera hnep diff before.hnep after.hnep --json. Add--fail-on-changefor a CI gate. Entries match by name; timestamps and digests are excluded. Timing changes are observations, not speedup claims. - Embedders can use
LoadedProfile::guarded_workloadandguarded_sizeto reject unavailable variants and receive structured fallback reasons. - Direct runtime loads now verify profiles; strict-machine rejects unsupported hosts.
- Hardware prototype brief: staged AMD appliance design, manufacturer deliverables, instrumentation proposal and acceptance gates. These are engineering plans; no hardware has been manufactured or qualified.
See profile revision workflows.
This release (Single-Zen Research Release) ships:
| Area | Capabilities |
|---|---|
| Discovery | Zen3 / Zen4 / Zen5 CPUID, topology graph, knowledge-pack validation, machine fingerprint |
| Measurement | Warmup/iterations, median/stability, tournaments with correctness + regression gates |
| Profiles | HNEP schema v2, size-class trees, integrity digests, SCF feedback, LLVM-style remarks |
| Runtime | Cheap dispatch, mismatch → baseline, optional C ABI, profile health / staleness / retrain |
| Lab / CLI | Harness, native-artifacts, calm-check, eval pack, align/placement/threads studies, report, toolchain probe |
| Research protocol | Silicon Split protocol + Machine B placeholder (verdict UNKNOWN without a second Zen host) |
Deferred: Silicon Split YES/NO and cross-SKU divergence tables need a second measured Zen machine. Single-machine work is not blocked � use silicera eval.
Non-goals: kernel drivers, BIOS/firmware modification, overclocking, LLM-in-the-loop optimization, fabricated speedups, automatic cloud upload of profiles.
Exactly four primary crates (plus excluded benchmarks/arm_kernels and optional fuzz/):
| Crate | Role | crates.io | Local README |
|---|---|---|---|
silicera |
Discovery, topology, measurement, HNEP, specialization, lifecycle health | v0.2.0 | crates/silicera/README.md |
silicera-runtime |
Profile load + cheap dispatch (no lab dependency) | v0.2.0 | crates/silicera-runtime/README.md |
silicera-lab |
Microbenchmarks, tournaments, studies, terminal lab, experiments | v0.2.0 | crates/silicera-lab/README.md |
silicera-cli |
silicera binary � grouped CLI + flat aliases |
v0.2.0 | crates/silicera-cli/README.md |
Canonical logos live under assets/:
| File | Use |
|---|---|
logo.svg |
Primary mark (die + cache rings + selected path) |
logo-mark.svg |
Compact mark |
logo-16.svg |
Favicon / nav |
logo-banner.svg |
README / docs banner |
social-card.svg |
Open Graph / social |
The same mark is copied to site/assets/ for GitHub Pages and linked from every package README.
cargo build --release
cargo test --workspaceBinary: target/release/silicera (or install with cargo install silicera-cli).
Optional native-artifact suite (separate crate, not a workspace member):
cargo run -p silicera-cli -- measure native-artifacts --suite# Identity & environment
cargo run -p silicera-cli -- about
cargo run -p silicera-cli -- commands
cargo run -p silicera-cli -- doctor
cargo run -p silicera-cli -- inspect
cargo run -p silicera-cli -- toolchain
cargo run -p silicera-cli -- report -o out/host-report.md
# Train → verify → health
cargo run -p silicera-cli -- train -o out/profile.hnep
cargo run -p silicera-cli -- verify out/profile.hnep --spot-check
cargo run -p silicera-cli -- health out/profile.hnep
cargo run -p silicera-cli -- hnep explain --profile out/profile.hnep --size 1048576
# Compiler-facing exports
cargo run -p silicera-cli -- feedback out/profile.hnep -o out/feedback.scf.json
cargo run -p silicera-cli -- export remarks out/profile.hnep -o out/remarks.yaml
cargo run -p silicera-cli -- remarks-summary out/remarks.yaml
# Single-Zen evaluation pack
cargo run -p silicera-cli -- calm-check
cargo run -p silicera-cli -- eval -o out/single-machine-eval.json
cargo run -p silicera-cli -- export archive --eval out/single-machine-eval.jsonsilicera commands # full catalog
silicera guide quickstart # operator guide
silicera recipe list # printable multi-step workflows
silicera hnep --help # profile / dispatch / health
silicera measure --help # harness / artifacts / studies| Group | Commands |
|---|---|
machine |
inspect, fingerprint, topology, env, probe, packs, doctor, counters, tpm |
hnep |
train, show, verify, health, validate, digest, explain, tree, dispatch, specialize, staleness, retrain |
measure |
benchmark, harness, native-artifacts, threads, align, placement, calm-check |
research |
eval, lab, experiment, compare, silicon-split, arch-compare |
export |
feedback, remarks, remarks-summary, fleet-export, repro-export, archive |
meta |
about, commands, guide, recipe, schema, init, runtime, report, toolchain, completions |
Flat aliases (CI / muscle memory): inspect, train, verify, doctor, eval, lab, harness, calm-check, feedback, arch-compare, about, commands, guide, recipe, report, toolchain, health, remarks-summary.
Grouped-only (no flat alias): export remarks, export archive, research silicon-split, research compare, hnep explain, measure native-artifacts, measure align, measure placement.
Unsupported CPUs exit with a clear message (exit code 2), not a crash:
cargo run -p silicera-cli -- inspect --mock zen5
cargo run -p silicera-cli -- inspect --mock unsupported
cargo run -p silicera-cli -- arch-compare --mockCaptured with silicera doctor / inspect on an AMD Ryzen 9 9950X (2026-08-12). Re-run on your machine; fingerprints are host-specific.
silicera doctor
version 0.1.0
phase II
host AMD Ryzen 9 9950X 16-Core Processor
support supported AMD microarchitecture: ZEN5
fingerprint SLC:AMD:ZEN5:1A:44:00:567dcabfdc75b2c3:cbb6a67840c83bca
env windows / x86_64 / 32 cpus
tpm Stubbed
Silicon Split: Machine A can be trained; Machine B remains a placeholder until a second Zen host exists → verdict UNKNOWN.
Do not paste fabricated speedups. Measured campaign notes live in docs/research/silicera-paper.md and CHANGELOG.md.
| Artifact | Path | Role |
|---|---|---|
| Knowledge pack | profiles/amd/*.toml |
Public architecture facts for validation (families, cache expectations) |
| HNEP | *.hnep |
Measured winners + decision tree + integrity digest for a fingerprint |
Fingerprints identify a machine class for profile matching. They are not authentication. See docs/security/fingerprint.md.
- Publish medians with host brand, fingerprint, OS, and iteration counts.
- Report losses clearly (
PORTABLE WINS,NATIVE BEATS SILICERA). - Never invent Machine B numbers or marketing percentages.
- Probe optional PGO/BOLT toolchains with
silicera toolchainbefore claiming those tables.
After training:
silicera verify out/profile.hnep --spot-check
silicera health out/profile.hnep # 0–100 integrity + confidence + staleness
silicera hnep staleness out/profile.hnep
silicera hnep retrain out/profile.hnep # partial --only plan when drift is soft| Doc | Audience |
|---|---|
| ARCHITECTURE.md | System design |
| ROADMAP.md | Current release · next (second Zen host) · hardening |
| docs/INDEX.md | Full doc hub |
| docs/getting-started/index.md | First measurements |
| docs/benchmarks/single-machine.md | Primary evidence path |
| examples/ | Silicon Split, Portable vs Native, Cold / Wrong Machine |
| site/ | Static research site (GitHub Pages from site/) |
| CHANGELOG.md | Release history |
Independent systems research software � dual-licensed MIT OR source-available proprietary.
- thanks.dev: https://thanks.dev/u/gh/theworker02
- GitHub: https://github.com/theworker02/silicera
- GitHub Sponsors: @theworker02
- Funding file:
.github/FUNDING.yml
cargo run -p silicera-cli -- aboutSource-available proprietary — evaluation under LICENSE; commercial / production use via COMMERCIAL.md. See LICENSE_TRANSITION_NOTICE.md and NOTICE.
See SECURITY.md. User-mode only. Fingerprints are not authentication. Report issues responsibly.
This project is proprietary. Production use, redistribution, and commercial deployment require a written commercial license or completed acquisition. See LICENSE and ACQUISITION.md. Contact @theworker02.
Buyer-facing diligence materials live in docs/acquisition/. Commercial licensing contact path: COMMERCIAL.md.
| Badge | Meaning |
|---|---|
| docs live | Public documentation / Pages surface for silicera |
| release v1.0.0 | Stable tagged release with narrative notes |
| license | See repository LICENSE for terms |
| status maintained | Actively kept in the @theworker02 portfolio |
| version 1.0.0 | Documentation and brand completeness milestone |
| pages enabled | Site intended at https://theworker02.github.io/silicera/ |
Detailed narrative for the stable line lives in CHANGELOG.md and the v1.0.0 GitHub Release.