@@ -67,7 +67,9 @@ Generically-tuned ATLAS and OpenBLAS are available with most distributions (e.g.
67
67
explicitly using the package-manager. e.g. for Debian / Ubuntu one would type
68
68
69
69
sudo apt-get install libatlas3-base libopenblas-base
70
+ sudo update-alternatives --config libblas.so
70
71
sudo update-alternatives --config libblas.so.3
72
+ sudo update-alternatives --config liblapack.so
71
73
sudo update-alternatives --config liblapack.so.3
72
74
73
75
selecting the preferred implementation.
@@ -80,7 +82,15 @@ folder to `/etc/ld.so.conf` then run `ldconfig`) ensuring that `libblas.so.3` an
80
82
exist and point to your optimal builds.
81
83
82
84
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
+ ```
84
94
85
95
* NOTE: Some distributions, such as Ubuntu ` precise ` do not create the necessary symbolic links
86
96
` /usr/lib/libblas.so.3 ` and ` /usr/lib/liblapack.so.3 ` for the system-installed implementations,
0 commit comments