skip to content
==> README.md <==
1# @ajax/mesh-rt-prim
2
3One include, `mesh/rt/prim.h`, for mesh-rt's device primitives on whichever target is compiled: inline
4PTX on nvptx64 (@ajax/mesh-rt-ptx), the CPU simulator elsewhere (@ajax/mesh-rt-sim). Adds the
5target-neutral f32 helpers: `mesh_f32_bits`/`mesh_f32_from_bits`, `mesh_rt_rdf`/`wrf`, `mesh_rt_shfl_idx_f`
6and `mesh_rt_warp_sum` (the butterfly sum: bitwise the same on every lane).
7
8- **Ported from:** alpha-rust-mesh `crates/mesh-rt/src/ptx.rs` (`rdf`, `wrf`, `shfl_idx_f`, `warp_sum`).
9- **Tests:** through every program's simulator tests and PTX builds.