interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / bridge / nvml / README.md

66 lines · 4148 bytes Raw Blame History Source

bridge/nvml: the NVML library files of CUDApp compat/, as derived files

One slice of CUDApp compat/ (CUDApp commit 84b524cadaaa8bc9b556adfaea9d6dd2e0d67a66): its compat/nvml/ directory. The three files there that are C or linker script, libnvidia-ml.c, nvml.h and libnvidia-ml.map, are not written by hand. CUDApp makes them with omega-bridge from the Omega library unit that this tree already holds, gpu/nvidia/native/nvml/api.om:

tools/bridge-seeded lib-c   native/nvml/api.om   > compat/nvml/libnvidia-ml.c
tools/bridge-seeded lib-h   native/nvml/api.om   > compat/nvml/nvml.h
tools/bridge-seeded lib-map native/nvml/api.om   > compat/nvml/libnvidia-ml.map

So this tree does not store them. derived.tsv lists each one with its mode, its source and the SHA-256 of the source, of the generator and of the output, and the gate shows that the generator, compiled by this tree's seed/out/omc, makes those bytes from this tree's source.

Files

Running it

tests/gates/run.sh bridge-nvml

The step checks seed/out/omc against seed/out/omc.sha256, builds the gate and runs it. Tiers:

Controls, run by the step: a table with one source digest changed (always caught); with BRIDGE_NVML_TOC, api.om with one error value changed and its digest re-pinned in a copy of the table, so only the emitted bytes can catch it; and the first toc.om with one line added, which must be refused as not a generator.

What is not in this tree, and why