Co-residency of resident CUDA kernels: whether every program's nodes fit on the GPU at once, and how many more do
$ sexc add @ajax/mesh-occupancy- total 3
- drwxr-xr-x-../
- drwxr-xr-x-Oct 27 02:57v/# 1 version
- drwxr-xr-x-Oct 27 02:57files/# the files of 0.1.0
- latest
- 0.1.0, published Oct 27 02:57 by ajax
- owners
- ajax
- license
- MIT
- dependencies
- @ajax/mesh-text ^0.1.0, @ajax/mesh-check ^0.1.0
- dependents
- @ajax/mesh-driver
- keywords
- mesh alphaos cuda occupancy scheduler
- homepage
- https://github.com/thomasdavis/alpha-c-mesh/tree/main/packages/mesh-occupancy
- repository
- https://github.com/thomasdavis/alpha-c-mesh
1# @ajax/mesh-occupancy 2 3Co-residency of resident CUDA kernels: every program's nodes must be on the GPU at once, forever, so a load is refused unless all of them fit (per kernel, the block budget, the occupancy shares, and whole-SM nodes against the spread of small blocks); and how many nodes of a shape still fit (`nodes = "fit"`). 4 5## Ported from 6 7[alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh) (Richard Safier, MIT): crates/mesh-host/src/backend.rs (`co_resident`, `room`). 8 9## Tests 10 11`tests/occupancy.c`: the Rust's `co_residency` test (RTX 3060 and GB10 shapes), with the exact messages. 12 13## Licence 14 15MIT. See the repository's LICENSE.