Skip to content

Commit 51d0987

Browse files
committed
Math Kernel Library documentation
1 parent b88e95a commit 51d0987

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ Generically-tuned ATLAS and OpenBLAS are available with most distributions (e.g.
6767
explicitly using the package-manager. e.g. for Debian / Ubuntu one would type
6868

6969
sudo apt-get install libatlas3-base libopenblas-base
70+
sudo update-alternatives --config libblas.so
7071
sudo update-alternatives --config libblas.so.3
72+
sudo update-alternatives --config liblapack.so
7173
sudo update-alternatives --config liblapack.so.3
7274

7375
selecting the preferred implementation.
@@ -80,7 +82,15 @@ folder to `/etc/ld.so.conf` then run `ldconfig`) ensuring that `libblas.so.3` an
8082
exist and point to your optimal builds.
8183

8284
If you have an [Intel MKL](http://software.intel.com/en-us/intel-mkl) licence, you could also
83-
create symbolic links from `libblas.so.3` and `liblapack.so.3` to `libmkl_rt.so`.
85+
create symbolic links from `libblas.so.3` and `liblapack.so.3` to `libmkl_rt.so` or use
86+
Debian's alternatives system:
87+
88+
```
89+
sudo update-alternatives --install /usr/lib/libblas.so libblas.so /opt/intel/mkl/lib/intel64/libmkl_rt.so 1000
90+
sudo update-alternatives --install /usr/lib/libblas.so.3 libblas.so.3 /opt/intel/mkl/lib/intel64/libmkl_rt.so 1000
91+
sudo update-alternatives --install /usr/lib/liblapack.so liblapack.so /opt/intel/mkl/lib/intel64/libmkl_rt.so 1000
92+
sudo update-alternatives --install /usr/lib/liblapack.so.3 liblapack.so.3 /opt/intel/mkl/lib/intel64/libmkl_rt.so 1000
93+
```
8494

8595
*NOTE: Some distributions, such as Ubuntu `precise` do not create the necessary symbolic links
8696
`/usr/lib/libblas.so.3` and `/usr/lib/liblapack.so.3` for the system-installed implementations,

0 commit comments

Comments
 (0)