omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / mk / dgraph-receipt.mk
| 1 | # Decode-graph performance receipt (aien-architecture#233, lane P1): tools/dgraph_receipt.om turns an |
| 2 | # existing decode-graph chip run (tools/run_gpu_decode_graph_chip.sh evidence) into one commit-bound |
| 3 | # receipt "omega-decode-graph-receipt/1" and checks such receipts. Host only: pure seeded OM-2, |
| 4 | # links nothing of libomega_gpu and no GPU header. Spec: docs/perf/DECODE_GRAPH_RECEIPT.md. Picked up |
| 5 | # by `-include mk/*.mk`; not part of `all` or `test`; run by tests/gates/run.sh chip-tool-selftests. |
| 6 | # make dgraph-receipt build/dgraph_receipt/dgraph_receipt |
| 7 | # make test-dgraph-receipt golden receipts regenerated from evidence/, checker accepts them, |
| 8 | # every negative fixture refused for its named reason |
| 9 | ifndef DGRAPH_RECEIPT_MK |
| 10 | DGRAPH_RECEIPT_MK := 1 |
| 11 | .PHONY: dgraph-receipt test-dgraph-receipt |
| 12 | DGR_DIR = $(OUT_DIR)/dgraph_receipt |
| 13 | |
| 14 | dgraph-receipt: $(DGR_DIR)/dgraph_receipt |
| 15 | |
| 16 | $(DGR_DIR)/dgraph_receipt: tools/dgraph_receipt.om seed/out/omc |
| 17 | @mkdir -p $(DGR_DIR) |
| 18 | seed/out/omc < tools/dgraph_receipt.om > $@ && chmod +x $@ |
| 19 | |
| 20 | # independent strict-JSON check of the golden receipts (tools/json_canon.om, pure OM-2) |
| 21 | $(DGR_DIR)/json_canon: tools/json_canon.om seed/out/omc |
| 22 | @mkdir -p $(DGR_DIR) |
| 23 | seed/out/omc < tools/json_canon.om > $@ && chmod +x $@ |
| 24 | |
| 25 | test-dgraph-receipt: $(DGR_DIR)/dgraph_receipt $(DGR_DIR)/json_canon |
| 26 | sh tests/dgraph_receipt/run.sh $(DGR_DIR)/dgraph_receipt $(DGR_DIR)/json_canon $(DGR_DIR)/work |
| 27 | |
| 28 | endif |