Skip to content

OpenBLAS

s-trinh edited this page Jun 5, 2020 · 1 revision

Build OpenBLAS from source on Linux

Building OpenBLAS from source should be quite easy on Linux. This has been tested on Ubuntu and Raspbian.

sudo apt-get install liblapack-dev
sudo apt-get install gfortran
[....]
git clone https://github.com/xianyi/OpenBLAS
cd OpenBLAS
mkdir install
make
make PREFIX=<path_to_OpenBLAS>/install install

OpenBLAS should automatically detect on which platform it is running, and set the correct compiler flags. It should not be needed to manually set the target.

To detect OpenBLAS from ViSP, set the following environment variable:

export OpenBLAS_HOME=<path_to_OpenBLAS>/install