Disk cache¶
cache_directory ¶
Returns the directory of the disk cache, creating it if needed.
cache_key ¶
Returns a cache key of parts that determine a result, and of the libraries.
distributions names the distributions besides JAX and cyxla whose code the result
depends on. A new version of any of them changes the key.
library_identity
cached
¶
Returns what identifies the libraries that lowered programs depend on.
It always covers jax, jaxlib and cyxla, and also the given distributions.
store_lowered ¶
Stores lowered programs under a key.
load_lowered ¶
Returns the lowered programs stored under a key, or None if there are none.
A malformed file is removed.
CACHE_ENVIRONMENT_VARIABLE
module-attribute
¶
Environment variable with the directory of the disk cache.