RUNTIME_VERSION 2218: warm compute creations decode and check their artifacts faster
The six commits before this one cut a compute pipeline state's creation when the in-memory memo has let the pipeline go and the creation reads its function and pipeline artifacts from disk: - an integer sequence decodes in one step, not one u32 at a time; - an artifact's frame checksum is XXH64, not SHA-256 (ARTIFACT_FORMAT_VERSION 517). It detects damage to an entry, such as a torn write or a flipped bit; it never authenticated anything, since whoever can write an entry can write its checksum. The keys, the profile fingerprint and the key check stay SHA-256. No answer changes, so it is not a FAST-PATHS item; - a device keeps its compiled pipelines' stage-word digests (LRU, 16384 entries) past their variants, so a program's state made after its warm pass no longer re-hashes every word. A release bench over an authored convolution fixture (ccb_conv_array: ten function constants, a 16K-word module) times these creations and their pieces. The digest map changes runtime behaviour. Verified on lavapipe on msi (selfread2's runs at 801e7cb8a6), ccb_conv_array, release, median creation, before -> after: memo of 1 byte 108-119 us -> 57 us; new device 185-196 us -> 134 us; after a warm pass with a 1-byte memo 134 us -> 115 us (the digest map); a warm memo unchanged at 9-13 us. The same SPIR-V, decoded field for field. clippy plain, m2v_cpu_icd and m2v_gpu exit 0; Rustdoc -D warnings exit 0; lavapipe runtime suite 2478 pass, 1 fail (the msi primed_devices failure fixed by RUNTIME_VERSION 2217); translator cache tests 65/65, including XXH64 vectors checked against the specification's values. The new fixture's engine expectation row, inventory entry, golden printout and golden_hashes cells are blessed at the next pin on development.
This commit is contained in:
1 parent
02a36459a3
commit
37bad46c08
1 file changed
+1
-1
Vendored
+1
-1
@@ -94,7 +94,7 @@ pub const ARTIFACT_FORMAT_VERSION: u32 = 517;
|
||||
/// 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 = 2217;
|
||||
pub const RUNTIME_VERSION: u32 = 2218;
|
||||
|
||||
/// 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
|
||||
|
||||
Reference in new issue
Block a user