Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Julia 1.7: Issue with/after BLAS.get_num_threads() #14

Open
carstenbauer opened this issue May 29, 2024 · 1 comment
Open

Julia 1.7: Issue with/after BLAS.get_num_threads() #14

carstenbauer opened this issue May 29, 2024 · 1 comment
Labels
bug Something isn't working upstream

Comments

@carstenbauer
Copy link
Member

carstenbauer commented May 29, 2024

Julia 1.7.2

julia> using LinearAlgebra

julia> using BLISBLAS

julia> BLISBLAS.get_num_threads()
1

julia> BLAS.get_num_threads()
16790712

julia> BLISBLAS.get_num_threads()
-1359210104

Note that using only BLISBLAS.*_num_threads works just fine:

julia> BLISBLAS.set_num_threads(5)

julia> BLISBLAS.get_num_threads()
5

Julia 1.8.5 & Julia 1.10.3

julia> BLISBLAS.get_num_threads()
1

julia> BLAS.get_num_threads()
64

julia> BLISBLAS.get_num_threads()
1
@carstenbauer carstenbauer added bug Something isn't working upstream labels May 29, 2024
@carstenbauer carstenbauer changed the title Issue with/after BLAS.get_num_threads() Julia 1.7: Issue with/after BLAS.get_num_threads() May 29, 2024
@jd-foster
Copy link
Contributor

jd-foster commented May 29, 2024

For the Julia 1.7.2 case, the fixes for get/set_num_threads() were added recently, see: JuliaLinearAlgebra/BLIS.jl#3 (comment)
but I think the compat bump might mean that it's still using an earlier blis_jll version 0.9? Or there is something happen with LBT in Julia 1.7? Possibly since BLISBLAS adds to OpenBLAS in LBT by default:

julia> BLAS.lbt_get_config()
LinearAlgebra.BLAS.LBTConfig
Libraries:
├ [ILP64] libopenblas64_.dll
└ [ILP64] libblis.dll

there is some "interference effect"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream
Projects
None yet
Development

No branches or pull requests

2 participants