skip to content
[readonly]

meshd worker: one program image in its own MPS client process, which maps the mailbox, loads its cubin and launches when meshd says so

sh
$ sexc add @ajax/mesh-mps-worker
  • total 3
  • drwxr-xr-x-../
  • drwxr-xr-x-Oct 27 04:27v/# 2 versions
  • drwxr-xr-x-Oct 27 04:27files/# the files of 0.1.1
latest
0.1.1, published Oct 27 04:27 by ajax
owners
ajax
license
MIT
dependencies
@ajax/mesh-cuda ^0.1.0, @ajax/cuda-driver ^0.1.0, @ajax/mesh-mps-wire ^0.1.0, @ajax/mesh-log ^0.1.0, @ajax/mesh-text ^0.1.0, @ajax/mesh-abi-base ^0.1.0, @ajax/mesh-abi-control-block ^0.1.0, @ajax/mesh-check ^0.1.0
dependents
@ajax/mesh-mps
keywords
mesh alphaos cuda mps worker process
homepage
https://github.com/thomasdavis/alpha-c-mesh/tree/main/packages/mesh-mps-worker
repository
https://github.com/thomasdavis/alpha-c-mesh
==> README.md <==
1# @ajax/mesh-mps-worker
2
3`meshd worker`: one program image in its own MPS client process. It maps meshd's mailbox file, registers it for the device, loads its one cubin (shape, scratch, `MESH_RT_ABI`, registers, occupancy, local bytes, the stack sized for it), launches `mesh_main` when told, and reports when the stream finished; it exits on W_QUIT, or at EOF after stopping its own kernel (meshd died).
4
5## Ported from
6
7[alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh) (Richard Safier, MIT): crates/mesh-host/src/mps_worker.rs.
8
9## Tests
10
11Through @ajax/mesh-mps's test, whose MPS workers run this on the fake device.
12
13## Licence
14
15MIT. See the repository's LICENSE.