From dbf24da85c1194f10820b01500e13df33546d86c Mon Sep 17 00:00:00 2001 From: Parker Williams Date: Thu, 29 Sep 2022 16:28:25 -0700 Subject: [PATCH] add homebrew path for shared libraries --- src/extensions/blas/load-libs.lisp | 5 ++++- src/extensions/lapack/load-libs.lisp | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/extensions/blas/load-libs.lisp b/src/extensions/blas/load-libs.lisp index 854acef2..7a13f2c2 100644 --- a/src/extensions/blas/load-libs.lisp +++ b/src/extensions/blas/load-libs.lisp @@ -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 diff --git a/src/extensions/lapack/load-libs.lisp b/src/extensions/lapack/load-libs.lisp index 723783bd..0a8f25c1 100644 --- a/src/extensions/lapack/load-libs.lisp +++ b/src/extensions/lapack/load-libs.lisp @@ -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