Reference
CPU and Metal execution
Perichora can execute signed numeric packages in bounded workers on the CPU or, on Apple silicon, through a verified Metal helper.
Scope
Backends
| Backend | Description |
|---|---|
| CPU | Reference implementation for the declarative linear and tree adapters, in an isolated worker process with time and memory limits. |
| Metal | A small trusted helper compiled and verified locally (perichora accelerator-build). Float32 arithmetic with CPU fallback. |
perichora doctor --human
perichora metal-probe
perichora accelerator-builddoctor lists detected accelerators and always reports inference_enabled: false.
Verification
The Phase 10 numeric verifier runs one signed tree fixture on both backends and compares the outputs: 32 rows, maximum absolute error 0.0, with deployment_allowed=false.
Limits
- Metal uses Float32; results can differ from a Float64 CPU path on other inputs.
- Workers are bounded by wall time, memory and scratch space; macOS memory accounting is sampled.
- On macOS, workers run under a sandbox profile that the runtime reports as
seatbelt-network-write-deny, restricting network access and file writes. Code already running as the same user is out of scope.