LinearAlgebra.BLAS.set_num_threads()
sets the number of threads. But, how to get the number of threads (so that I could save it, set another one, then restore the value)? Thanks.
2 Likes
I think you can use get_num_threads
that is defined here:
https://github.com/JuliaLang/julia/blob/7bc374290cbb62ff1890541226da2df8fb3ef864/stdlib/Distributed/test/distributed_exec.jl#L999
1 Like
thanks. Should I assume that this function would be available soon in future releases?
In future releases hopefully BLAS will just use Julia’s own threads.
1 Like
Someone can make a PR for having this in the release.