Skip to content

Commit

Permalink
Add blis32_jll
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed May 10, 2023
1 parent 23bcc23 commit 8b834fc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ version = "0.1.0"

[deps]
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
blis32_jll = "e47b3055-b30e-52b1-9cd4-aea7f6c39f40"
blis_jll = "6136c539-28a5-5bf0-87cc-b183200dce32"

[compat]
blis32_jll = "0.9"
blis_jll = "0.9"
julia = "1"
julia = "1.6"

[extras]
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Expand Down
6 changes: 6 additions & 0 deletions src/BLISBLAS.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module BLISBLAS

using blis32_jll
using blis_jll
using LinearAlgebra

Expand All @@ -16,6 +17,11 @@ function set_num_threads(nthreads)
end

function __init__()
if blis32_jll.is_available()
BLAS.lbt_forward(blis32, clear=false)
else
@warn("blis32_jll artifact doesn't seem to be available for your platform!")
end
if blis_jll.is_available()
BLAS.lbt_forward(blis, clear=false)
else
Expand Down

0 comments on commit 8b834fc

Please sign in to comment.