Skip to content

Commit 0c1e4f6

Browse files
authored
Document for static linking
From #136
1 parent 10cbd91 commit 0c1e4f6

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ You should link a LAPACKE implementation to a final crate (like binary executabl
6060
[dependencies]
6161
ndarray = "0.12"
6262
ndarray-linalg = "0.10"
63-
openblas-src = "0.5" # or another backend of your choice
63+
openblas-src = "0.7" # or another backend of your choice
6464

6565
```
6666

@@ -71,3 +71,14 @@ extern crate ndarray;
7171
extern crate ndarray_linalg;
7272
extern crate openblas_src; // or another backend of your choice
7373
```
74+
75+
### Link statically
76+
77+
If you needs to link the backend (OpenBLAS/Netlib) statically, please add following to your Cargo.toml
78+
79+
```toml
80+
[dependencies]
81+
openblas-src = { version = "0.7.0", features = ["static"] }
82+
```
83+
84+
Intel-MKL backend does not support static linking.

0 commit comments

Comments
 (0)