pub fn install_compilation_cache() -> Result<Option<PathBuf>, CacheAlreadyInitialisedError>Expand description
Points CubeCL’s compilation and autotune caches at a directory.
Returns Ok(Some(path)) with the directory in use, or Ok(None)
when caching is off. Caching is off when
COMPILATION_CACHE_ENV says so, when there is no home directory to
derive a default from, or when the directory cannot be created.
A directory that cannot be created is reported through tracing and
then ignored. Denoising works without a cache, so failing to write
one is not a reason to refuse to run.
Returns Err if something else has already read the global config,
which usually means a CubeCL client was created first.