Expand description
Entry points that pick a Backend and run a generic Kernel: runtime CPU detection
chooses the widest implemented backend per scalar (build-time target_features on no-std or
under --cfg hp_static_dispatch), with ScalarBackend as the universal fallback.
Traits§
- Kernel
- A unit of work generic over the execution backend. Implement this once;
hydroplaneruns it on the backend it selects, handingrunaGangcontext to build varying values through (splat,load, …). The rawBackendtoken is reachable viaGang::backend. - Simd
Dispatch - Per-scalar dispatch policy.
f32/f64try a SIMD backend then fall back to scalar; other scalars (e.g.f16before the native-FP16 milestone) use the scalar path.
Functions§
- dispatch
- Run
kernelon the best available backend forT, chosen by runtime CPU detection. - run_
scalar - Run
kernelon the always-available scalar (1-lane) backend. Useful as a correctness oracle or baseline; normal code should usedispatch.