# From MKL back to OpenBLAS

**URL:** <https://discourse.julialang.org/t/from-mkl-back-to-openblas/37722>\
**Category:** Performance\
**Tags:** mkl\
**Created:** [April 16, 2020, 11:49pm UTC](https://discourse.julialang.org/t/from-mkl-back-to-openblas/37722 "2020-04-16T23:49:23Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![e3c6](https://avatars.discourse-cdn.com/v4/letter/e/e79b87/32.png) [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Post date:** [January 5, 2022, 11:58pm UTC](https://discourse.julialang.org/t/from-mkl-back-to-openblas/37722/9 "2022-01-05T23:58:57Z")

</div>

The following seems to work, for switching at run-time in Julia 1.7.  
No need to restart.

```julia
julia> using LinearAlgebra

julia> BLAS.get_config()
LinearAlgebra.BLAS.LBTConfig
Libraries: 
└ [ILP64] libopenblas64_.so

julia> using MKL

julia> BLAS.get_config()
LinearAlgebra.BLAS.LBTConfig
Libraries: 
└ [ILP64] libmkl_rt.so

julia> LinearAlgebra. __init__ ()

julia> BLAS.get_config()
LinearAlgebra.BLAS.LBTConfig
Libraries: 
└ [ILP64] libopenblas64_.so

julia> MKL. __init__ ()
4770

julia> BLAS.get_config()
LinearAlgebra.BLAS.LBTConfig
Libraries: 
└ [ILP64] libmkl_rt.so

```

Credits to @giordano (though he also warned this might not be proper way to switch).

---

_[View the full topic](https://discourse.julialang.org/t/from-mkl-back-to-openblas/37722)._
