Skip to content

Commit

Permalink
add homebrew path for shared libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
Spin1Half authored and stylewarning committed Sep 29, 2022
1 parent c2a9d9e commit dbf24da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/extensions/blas/load-libs.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
#+:magicl.use-accelerate
(:darwin "libBLAS.dylib" :search-path #P"/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Versions/A/")
#-:magicl.use-accelerate
(:darwin (:or "/usr/local/opt/lapack/lib/libblas.dylib" "libblas.dylib" ))
(:darwin (:or
"/opt/homebrew/opt/lapack/lib/libblas.dylib"
"/usr/local/opt/lapack/lib/libblas.dylib"
"libblas.dylib" ))
#+:magicl.use-mkl
(:unix "libmkl_rt.so")
#-:magicl.use-mkl
Expand Down
5 changes: 4 additions & 1 deletion src/extensions/lapack/load-libs.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
;; because it's more complete. (macOS-provided LAPACK doesn't have a
;; lot of the more obscure subroutines.)
#-:magicl.use-accelerate
(:darwin (:or "/usr/local/opt/lapack/lib/liblapack.dylib" "liblapack.dylib"))
(:darwin (:or
"/opt/homebrew/opt/lapack/lib/liblapack.dylib"
"/usr/local/opt/lapack/lib/liblapack.dylib"
"liblapack.dylib"))
#+:magicl.use-mkl
(:unix "libmkl_rt.so")
#-:magicl.use-mkl
Expand Down

0 comments on commit dbf24da

Please sign in to comment.