coralReef

Shader compilation

Sovereign GPU compiler — WGSL/SPIR-V/GLSL to native GPU binaries. No LLVM, no Mesa, no vendor SDK. Full f64 transcendental support for NVIDIA SM70-SM89 and AMD RDNA2.

219,980lines of Rust
4,523test functions
920files
21crates

ecoPrimals/coralReef

Tier: foundation

Capabilities

CategoryPrimitives
CompilerWGSL → SPIR-V → SASS (SM70-SM89), AMD RDNA2 (GFX1030), full f64 lowering
Transcendentalsexp2, log2, sin, cos, sqrt, rcp — instruction-level emission with FMA policy
DrivercoralDriver userspace GPU dispatch via DRM ioctl (amdgpu, nouveau/nvidia-drm)
StubsPure Rust CFG, BitSet, dataflow, SmallVec, fxhash — zero external deps in compiler core

Composes Into

Sovereign Compute Pipeline (barraCuda → coralReef → native binary → ToadStool → hardware), Node Atomic, NUCLEUS

Referenced in 31 pages