hello, the smallest mesh GPU program (task = arg * 3 + 7), as PTX from C
$ sexc add @ajax/mesh-prog-hello- 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 ^0.1.0, @ajax/mesh-rt-sim-mailbox ^0.1.0, @ajax/mesh-check ^0.1.0
- dependents
- none yet
- keywords
- mesh alphaos gpu ptx program
- homepage
- https://github.com/thomasdavis/alpha-c-mesh/tree/main/programs/hello
- repository
- https://github.com/thomasdavis/alpha-c-mesh
1# @ajax/mesh-prog-hello 2 3The smallest mesh GPU program, for lifecycle tests: op 0 returns `arg * 3 + 7`. View: `0x0` magic 4"HELO" (set by init), `0x4` the last arg, `0x8` the last result. Counters: 0 tasks, 1 inits. 5 6A `ptx` package: `sexc build` compiles `src/hello.c` for nvptx64; `mesh-build-programs` links it into 7the catalog's `hello.ptx` in the cluster float mode. 8 9- **Ported from:** alpha-rust-mesh `programs/hello/src/lib.rs`. 10- **Tests:** on the CPU simulator, the same source compiled for the host: init, results (with wrapping), 11 a bad op, a batch of 40 tickets over 2 nodes, the counters, `P_DONE`, `P_ONLINE`, a halt and a relaunch.