Julia's blas library has a function set_num_threads()
which sets the threads for BLAS operations.
How do I get the number of threads being used by default, or currently?
As of Julia 1.6, you can use LinearAlgebra.BLAS.get_num_threads()
. So the following code will do the trick:
using LinearAlgebra
BLAS.get_num_threads()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With