Files
metal2vulkan/docs
Anees Iqbal 6750bb3c74 validation: run plain kernel cases through the runtime's public API
The engine candidate's Vulkan executor runs a kernel case of buffers (device buffer arrays
included), threadgroup memory, function constants and linked functions, dispatched by threads
or threadgroups and observing a buffer, through metal2vulkan-runtime as a consumer runs it
(engine::runs_through_runtime decides it from the case's structure; platform::execute_runtime
runs it): Instance, the loader's first device of the kind, Device with the default options,
the library and function from the row's AIR with the case's constants and linked functions,
one compute pipeline state, one Shared buffer per binding as the oracle makes it (a bound
buffer padded to its declared size), one compute encoder, one dispatch, the bounded wait and
the readback. Only on the native backend, in the stated leg and without a profile restriction;
every other case keeps the executor's own context until its family's landing.

The device worker enables VK_LAYER_KHRONOS_validation for the run through the loader's and
the layer's variables (core and synchronization validation, every message, one log per
process); a device with no active validation tool fails the run, and so does any logged
message. The pipeline state's make is held to 500 MiB of peak live allocations
(worker::alloc::bounded: an allocation past it ends the process with exit 87 and a stderr
line) and 20 s; the driver's creation to the case's bound; every pipeline is made before the
submission (prepare_dispatch).

The row keeps what the runtime answers: the state's precision notes and the runtime
fingerprint (engine::runtime_fingerprint: the product, SEMANTICS_VERSION and the runtime
crate's sources, METAL2VULKAN_RUNTIME_CRATE_FINGERPRINT from build.rs). spv_sha256, the
status, the census module's subgroup shape, containment and artifact are absent (Option, serde
default); the index's staleness accepts the runtime fingerprint as this build's.

ReductionOrder: the comparison keeps the note's per-operation allowance. The census strategies
of a runtime row are the simdgroup float sums and products the case's AIR calls
(check::interface::float_reductions, from the entry's module and each linked module), under
the names the translator's strategy census gives them, so ComparisonClass::derive bounds the
same operations with the same reorder table as before; a note no such operation explains
(a simdgroup matrix's) stays unbounded, as before.

ENGINE_EXECUTOR_ABI v185: rows of these cases record another environment and census.
2026-11-20 13:39:18 -08:00
..