mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 10:38:54 +00:00
PyO3: Add mkl
support (#1159)
* Add `mkl` support * Set `mkl` path on linux
This commit is contained in:
@ -18,6 +18,7 @@ candle = { path = "../candle-core", version = "0.3.0", package = "candle-core" }
|
||||
candle-nn = { path = "../candle-nn", version = "0.3.0" }
|
||||
half = { workspace = true }
|
||||
pyo3 = { version = "0.19.0", features = ["extension-module"] }
|
||||
intel-mkl-src = { workspace = true, optional = true }
|
||||
|
||||
[build-dependencies]
|
||||
pyo3-build-config = "0.19"
|
||||
@ -25,3 +26,4 @@ pyo3-build-config = "0.19"
|
||||
[features]
|
||||
default = []
|
||||
cuda = ["candle/cuda"]
|
||||
mkl = ["dep:intel-mkl-src","candle/mkl"]
|
||||
|
Reference in New Issue
Block a user