DeviceOptions::pipeline_cache_dir names a directory a device keeps two
things in, for compute pipeline states. translations/ holds each lowering,
named by its FunctionCompileKey (the kernel's AIR, entry, constants and linked
functions, its lowering inputs, the profile fingerprint and the translator's
semantics version), in the translator's self-checking encoding; a state reads
a lowering there in place of lowering (Metrics::translations_loaded beside
the new Metrics::translations), and a partial-threadgroups variant the
translator refused is kept as a marker so it is not tried again. The files
take at most 256 MiB, least recently used evicted first. pipelines-<uuid>
holds the VkPipelineCache data, framed with a length and a checksum since
the initial data must be exactly what vkGetPipelineCacheData returned; every
VkPipeline is made through the device's cache, the reaper writes the data 10
seconds after a VkPipeline was made at most once per 10 seconds, and the
device's end writes it a last time. Writes go through a temporary file
renamed over the name; a file that does not check is a miss and nothing the
cache does fails a call.
The tile commit's README, refusal table and API signatures follow here:
direct dispatches past maxComputeWorkGroupCount are split, and
Gap::PartialThreadgroups names the variant refusals by the deciding queries.
Tests: a store filled past its cap keeps the most recently used files within
it, stores on one directory share files, and pipeline data cut short or
flipped is a miss (host); a second device on the same directory lowers
nothing at creation, reading all three lowerings, and the pipeline data file
is there (device). Not yet compiled: the lint follows.