Files
metal2vulkan/docs
Anees Iqbal aa15ad6b5b Translator and runtime: a refusal of the partial-threadgroups variant names its cause
The translator refuses a kernel's partial-threadgroups variant for five structures, and
the refusal named none, so a walk could not tell them apart (a guest library's kernels
5ba5f694ad0576ff #81 and #83 refuse it with no cause) and the runtime reported each as
Gap::PartialThreadgroups at site Translator.

- error: PartialThreadgroupsCause (ComputeDerivatives, OtherForm, SharedSliceWrite,
  TileFunction, VoteWord), Cause::PartialThreadgroups and Unsupported::partial_threadgroups.
  Each site names its cause: compile.rs's analyze_one (the variant beside another form),
  mesh::plan_partial_groups (a tile function, compute derivatives, an imageblock slice write
  every invocation shares) and simd::divergent's barriers (the vote word, still needing the
  maxComputeSharedMemorySize limit). Feature::PartialThreadgroups' doc lists today's causes
  (the stage-input region and the emulated SIMD-group tier are no longer refused).
- runtime: VariantRefusal reads the cause (the vote word's, a structure's, or none) instead of
  the needs; PartialThreadgroupsSite gains Structure { cause }, the translator's type
  re-exported; Translator stays for a refusal that names no structure. The cache directory
  keeps each refusal under a marker of its own (cache::REFUSALS: the old two plus one a
  structure), so a refusal read back names the same cause.
- Tests: the red test, and a runtime unit test that every cause maps to its refusal and its
  marker and back. README: the gap's sites. REFUSALS.md and basis.rs regenerated;
  api_surface row; api_signatures.tsv blessed.
- SEMANTICS_VERSION 2362 and RUNTIME_VERSION 2567: the refusal and the dispatch's gap say
  more (renumbered at landing: SEMANTICS 2360 and 2361 went to the seq_cst fence and the
  argument buffer border texels, RUNTIME 2566 to the seq_cst fence).

Verified (jobs m3-max-84834, -84836, -84838, -84839, -85025):
- red, the red commit's crates over this commit's target: 3 tests run, 0 passed, 3 failed,
  each refusal PartialThreadgroups with no cause; green: 4 tests run, 4 passed (the three and
  a_variant_refusal_keeps_the_translator_s_cause).
- product suites: 3495 tests run, 3494 passed, 1 failed, 24 skipped; the failure is
  golden_hashes_match_the_table, whose table is re-blessed on development. Validation: 1348
  passed, 2 skipped. Conformance: 1053 passed, 0 skipped. Doctests pass.
- clippy --workspace --all-targets --all-features -D warnings: plain, --cfg m2v_gpu and
  --cfg m2v_cpu_icd, each EXIT=0. Rustdoc with -D warnings and scripts/api-docs: EXIT=0.
Not verified here: which cause the walk's kernels #81 and #83 name (a probe on the walk's
library, reported apart).
2026-12-03 11:37:12 -08:00
..