skip to content
[readonly]

mesh-rt's device primitives for the target being compiled (PTX on nvptx64, the CPU simulator elsewhere) and the f32 helpers on them

sh
$ sexc add @ajax/mesh-rt-prim
  • total 3
  • drwxr-xr-x-../
  • drwxr-xr-x-Oct 27 03:26v/# 1 version
  • drwxr-xr-x-Oct 27 03:26files/# the files of 0.1.0
latest
0.1.0, published Oct 27 03:26 by ajax
owners
ajax
license
MIT
dependencies
@ajax/mesh-rt-ptx ^0.1.0, @ajax/mesh-rt-sim ^0.1.0
dependents
@ajax/mesh-rt, @ajax/mesh-rt-block, @ajax/mesh-rt-ctx, @ajax/mesh-rt-loop, @ajax/mesh-rt-view
keywords
mesh alphaos gpu runtime
homepage
https://github.com/thomasdavis/alpha-c-mesh/tree/main/packages/mesh-rt-prim
repository
https://github.com/thomasdavis/alpha-c-mesh
==> 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.