RUNTIME_VERSION 2160: large pipeline makings hold a process limit of SPIR-V words around their driver call

The three commits before this one. Blender's kernels on RADV made several large pipelines at once, and the driver's
compile memory (a curve kernel alone peaks at several GiB) added up past the host. A making whose stages hold 65,536
SPIR-V words or more now holds its words of a process limit around its driver call (pipeline/compile_memory.rs):
counted makings in flight hold at most 4,194,304 words, a larger one runs alone, and one that does not fit waits for
those in flight, lending its turn while it waits (budget::without_turn); waiters go in turn-rank order, none
overtaking. Applied to compute makings, whole render pipelines (their stages' words) and pipeline library parts (their
own stages). ShaderModule carries its word count. New counters WorkCounts::makings_held_for_compile_memory and
compile_memory_held_nanos (the conformance cost half classifies the count with the other making counts; host_ab lists
both; api_signatures.tsv +2 fields).

Verified (on the branch, msi): clippy -D warnings, runtime and conformance, all targets and features (m3-max-23004);
runtime budget/pool/flight tests 79 passed, conformance cost tests 17 (23004); the 4 compile_memory tests (m3-max-23041):
a making below the floor is not held, two large ones never hold at once, nothing overtakes a waiter and waiters go in
rank order, a waiter lends its turn and takes it again. Not run: clippy under m2v_gpu, a GPU run of the limit.
This commit is contained in:
Anees Iqbal committed 2026-11-12 15:37:50 -08:00
1 parent b1acd04588
commit fd23616d17
1 file changed
+1 -1
+1 -1
View File
@@ -93,7 +93,7 @@ pub const ARTIFACT_FORMAT_VERSION: u32 = 509;
/// changes no behaviour, and then updates that hash alone with the commit saying why, or changes
/// behaviour and also bumps this version. The commit that bumps it says what changed; this comment
/// keeps no history.
pub const RUNTIME_VERSION: u32 = 2159;
pub const RUNTIME_VERSION: u32 = 2160;
/// The digest of the sources this build of the crate was compiled from: SHA-256, as lowercase hex,
/// of the manifest, the build script, and exactly the files the crate roots' module tree compiles