Commit Graph
2 Commits
Author SHA1 Message Date
Anees Iqbal 92ce7950fc Docs: "the runtime", not "the new runtime"
There is one runtime, so the prose of the harness, validation, devtools,
the translator's lockstep module, .config/nextest.toml and the refusal
surface and conformance coverage generators says "the runtime"
(scratch newrt.py: a word replacement, identifiers such as new_runtime
and NewRuntime untouched). docs/REFUSALS.md and
docs/CONFORMANCE-COVERAGE.md are regenerated from the edited scripts.

Four harness passages said the runtime makes no heap and no texture
over a buffer, and has no Managed mode. The runtime has all three
(Device::new_heap_buffer and heap textures, Buffer::new_texture,
Device::new_managed_buffer); the harness's own backend refuses the two
texture sources. They now say the harness makes neither on the runtime,
and the Managed note names Device::new_managed_buffer. The refusal
strings keep the words the harness's described test matches ("makes no
heap", "makes no texture over a buffer").

Left: three fixture comments (.metal under validation's public
fixtures, whose text keys the golden tables and the committed AIR) and
scripts/matrix, whose keys (harness-new) carry the same naming.

Verified locally: the refusal surface, Metal coverage, conformance
coverage and API signature checks pass.
2026-11-20 11:52:56 -08:00
Anees Iqbal 7708b4ba82 conformance, rt test: threadgroup memory read before the program writes it
The conformance case compute-threadgroup-memory-reads-zero runs tgz_reads
in one compute pass: the [[threadgroup(0)]] region's length set once,
then 2048 threadgroups of 256, of 250 and of 30 threads, twice each, each
dispatch into its own 16-byte slot, so later threadgroups of a dispatch
and the second dispatch run where earlier threadgroups stored their
patterns. Its test holds Metal's recorded words equal to
metal2vulkan_devtools::threadgroup_start::answer: nothing read nonzero
before the program wrote it, every pattern read back, Metal's SIMD
groups.

The new runtime's device test
every_device_reads_zero_from_threadgroup_memory_until_the_program_writes_it
runs the same dispatches on every device and holds the same answer; at
a size that is not whole groups of what the plain module runs, it holds
that the emulated SIMD-group module was made and ran.
2026-11-19 13:52:36 -08:00