Files
metal2vulkan/docs
Anees Iqbal 428c680bdd translator: Device::kernel_observes_partition answers before any lowering
What: Device::kernel_observes_partition(kernel, inputs, budget, entries) answers what
CompiledFunction::observes_threadgroup_partition answers for the compile under the same inputs,
lowering nothing: from the specialized entry StageEntries holds (or one made there now), ordered
for the device as the compile orders it (lockstep's inserted barriers observe the partition).

Why: a runtime can then lower only the variant a creation needs: an observing kernel runs at its
own size and needs no tiles, an oblivious one runs its grid in tiles. Split from the ragged
branch, without its SpecKey::Ragged (ruled out).

Tests: engine_identity's the_partition_query_answers_what_the_compile_does: the query equals the
compile's answer for an oblivious and an observing kernel on both profiles. API table and API.md.
2026-11-18 06:06:37 -08:00
..