Support the Accelerate BLAS on macOS. (#325)

* Add the accelerate feature.

* Ffi tweaks.
This commit is contained in:
Laurent Mazare
2023-08-05 17:25:24 +01:00
committed by GitHub
parent 0b175fcbbd
commit b278834267
12 changed files with 241 additions and 9 deletions

View File

@ -10,6 +10,7 @@ license.workspace = true
readme = "README.md"
[dependencies]
accelerate-src = { workspace = true, optional = true }
byteorder = { workspace = true }
candle-kernels = { path = "../candle-kernels", version = "0.1.0", optional = true }
cudarc = { workspace = true, optional = true }
@ -32,3 +33,4 @@ anyhow = { workspace = true }
default = []
cuda = ["dep:cudarc", "dep:candle-kernels"]
mkl = ["dep:libc", "dep:intel-mkl-src"]
accelerate = ["dep:libc", "dep:accelerate-src"]