Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LinearAlgebra] Cache
lbt_get_config()
result (JuliaLang#44383)
* [LinearAlgebra] Cache `lbt_get_config()` result In the event that users want to call `lbt_get_config()` multiple times (e.g. for runtime checks of which BLAS vendor is providing a symbol), let's cache the value and clear it only when someone calls something that would cause the config itself to change. * Use double-checked locking to cache LBT config (JuliaLang#44387) * Use double-checked locking to cache LBT config * Use Any field for lock-free load and store * Revert "Use Any field for lock-free load and store" This reverts commit c6acae5. The compiler already handled it: JuliaLang#44387 (comment) * (rerun) * Add lock as a field of ConfigCache Co-authored-by: Takafumi Arakaki <[email protected]>
- Loading branch information