Install OpenBLAS from source

Internship at OpenGenus

Get FREE domain for 1st year and build your brand new site

Reading time: 10 minutes

In this guide, we will walk you through the installation steps of OpenBLAS in three simple steps.

OpenBLAS is an open source optimized BLAS (Basic Linear Algebra Subprograms) library based on GotoBLAS2 1.13 BSD version.

Get your source code

You need to clone the source code of OpenBLAS to your local workspace using the following command:

git clone
cd OpenBLAS

Build and prepare OpenBLAS

As the next step, you need to build the source of OpenMP using the following command:

make -j4

Install OpenBLAS

You need to install OpenBLAS and get the shared library:

make install

If you want the shared library to a particular location (say <path_to_your_destination>), then replace "make install" by:

make PREFIX=<path_to_your_destination> install

Enjoy the power of parallel execution, you have install OpenBLAS