translator: one stage bound on every device; the two stage-size workarounds go
A module whose entry weighs more than COMPILED_STAGE_WEIGHT (99,109, the heaviest stage measured to compile within host-sized memory, on ANV) is now handed to no driver, whatever its identity. A kernel that emulated its simdgroups only in place of the widest mode's pin (the subgroup size range decides it) is planned again keeping the pin, as before; every other module past the bound is refused with Feature::StageSize and a new Needs::StageBound, its symbol naming the weight and the bound. The refusal is permanent for the input on the device (its plan decides the weight), so it is not NotImplemented; validation reads it as the translator's own gap. DriverWorkaround::SerializedStageWrapsLargeModules and CompilerMemoryGrowsWithStageSize go, with ANV's identity entries for them and the serialized bound (786,432), which the single bound sits far below. Why: the workaround ladder takes one form for every device, the slowest compiler's; a device whose compiler would take a heavier stage is refused it, recorded in FAST-PATHS' known gaps. Measured before this change, with a scratch build that applied the bounds and the re-plan to every profile: the corpus on the Iris Xe's description without its identity refused nothing (largest planned module 91,399, job m3-max-41496), and RADV and NVIDIA nothing either; without maximal reconvergence 12 rows were refused, 6 distinct simdgroup-matrix modules of 198 to 285 products whose lockstep pairs force emulated simdgroups (jobs m3-max-41474, m3-max-41523). The owned fixture stage_bound/stage_bound_matrix (512 simdgroup matrix products beside a lockstep pair in divergent flow, our own MSL) has their structure: on the Iris Xe its emulated module weighs 123,307 and its pinned one 37,646; without maximal reconvergence it is refused at 123,308 (scratch weighing, job m3-max-41602). The new test the_stage_bound_fixture_keeps_the_pin_or_is_refused asserts both paths and that the re-planned kernel is under the bound. The old runtime's heap-trim test loses its long chain, now refused on every device; it asks for a trim where the making left more than the floor free (NVIDIA's compile never does under the bound, 189 MB at most measured). SEMANTICS_VERSION 2150; REFUSALS.md regenerated; the API table loses the two variants and gains Needs::StageBound.
This commit is contained in:
1 parent
9cb90de8cc
commit
576a7348bc
27 files changed
+2580
-409
No files matched your search
@@ -2116,6 +2116,9 @@ match floor.compile_function(&min_lod, &LoweringInputs::new(), &Budget::standard
|
||||
- `NotImplemented`: a gap of this version. `NotRepresentable`: no Vulkan mechanism exists.
|
||||
- `DriverDefect`: a defect the device's driver is measured to have. `RuntimeDriverDefect`: one in a
|
||||
command the runtime records.
|
||||
- `StageBound`: a stage that the device's plan writes heavier than the translator hands any
|
||||
driver (the heaviest measured to compile within host-sized memory); `symbol` names its entry
|
||||
weight and the bound. A device whose plan writes it lighter compiles it.
|
||||
- `MetalGpuFamily`: a Metal GPU family the device does not claim, where Metal itself refuses the
|
||||
input without it.
|
||||
|
||||
|
||||
Reference in new issue
Block a user