summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md21
1 files changed, 17 insertions, 4 deletions
diff --git a/README.md b/README.md
index d323cc9f..088e78b3 100644
--- a/README.md
+++ b/README.md
@@ -144,21 +144,34 @@ Finally, Rust is cool! A lot of the HF ecosystem already has Rust crates, like [
#### Missing symbols when compiling with the mkl feature.
If you get some missing symbols when compiling binaries/tests using the mkl
-features, e.g.:
+or accelerate features, e.g. for mkl you get:
```
= note: /usr/bin/ld: (....o): in function `blas::sgemm':
.../blas-0.22.0/src/lib.rs:1944: undefined reference to `sgemm_' collect2: error: ld returned 1 exit status
= note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
= note: use the `-l` flag to specify native libraries to link
- = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname)
+ = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo
+```
+or for accelerate:
+```
+Undefined symbols for architecture arm64:
+ "_dgemm_", referenced from:
+ candle_core::accelerate::dgemm::h1b71a038552bcabe in libcandle_core...
+ "_sgemm_", referenced from:
+ candle_core::accelerate::sgemm::h2cf21c592cba3c47 in libcandle_core...
+ ld: symbol(s) not found for architecture arm64
```
This is likely due to a missing linker flag that was needed to enable the mkl library. You
-can try adding the following at the top of your binary:
-```
+can try adding the following for mkl at the top of your binary:
+```rust
extern crate intel_mkl_src;
```
+or for accelerate:
+```rust
+extern crate accelerate_src;
+```
#### Cannot run llama example : access to source requires login credentials