How to get number of current BLAS threads?

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:

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.