Refuses a mesh program PTX that breaks the cluster float mode (FTZ, correctly rounded, unfused float ops)
$ sexc add @ajax/mesh-ptx-float-check- total 3
- drwxr-xr-x-../
- drwxr-xr-x-Oct 27 03:27v/# 1 version
- drwxr-xr-x-Oct 27 03:27files/# the files of 0.1.0
- latest
- 0.1.0, published Oct 27 03:27 by ajax
- owners
- ajax
- license
- MIT
- dependencies
- @ajax/mesh-ptx-float-rules ^0.1.0, @ajax/mesh-check ^0.1.0
- dependents
- none yet
- keywords
- mesh alphaos ptx ftz lint
- homepage
- https://github.com/thomasdavis/alpha-c-mesh/tree/main/apps/mesh-ptx-float-check
- repository
- https://github.com/thomasdavis/alpha-c-mesh
1# @ajax/mesh-ptx-float-check 2 3``` 4mesh-ptx-float-check PROGRAM.ptx 5``` 6 7Refuses a program PTX that breaks the cluster float mode (README "Cluster float mode: FTZ" of 8alpha-rust-mesh), so CUDA and Metal members of a cluster compute the same bits. Exit 0: fine; 1: refused, 9with up to five `file:line: why: the line` problems on stderr; 2: usage. The rules are 10@ajax/mesh-ptx-float-rules. 11 12- **Ported from:** alpha-rust-mesh `scripts/ptx-float-check.sh`, same messages and exit codes. 13- **Tests:** reading a file and reporting a fused multiply-add with its line; the rules have their own tests.