Skip to main content

install_compilation_cache_once

Function install_compilation_cache_once 

Source
pub fn install_compilation_cache_once() -> Option<&'static Path>
Expand description

Points CubeCL at a cache the first time it runs, and reports where.

Written for callers that are not a main, such as the VapourSynth plugin, where filter creation is the earliest hook there is and runs once per filter rather than once per process.

A failure to install is reported through tracing and then ignored, because a plugin that refuses to denoise is worse than one that recompiles. Failing here means something else configured CubeCL first, which may well have pointed it at a cache of its own. What is lost is knowing where that cache is, which is why this answers None rather than guessing.