×

Search anything:

Install OpenBLAS from source

Binary Tree book by OpenGenus

Open-Source Internship opportunity by OpenGenus for programmers. Apply now.

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 https://github.com/xianyi/OpenBLAS.git
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

OpenGenus Tech Review Team

OpenGenus Tech Review Team

The official account of OpenGenus's Technical Review Team. This team review all technical articles and incorporates peer feedback. The team consist of experts in the leading domains of Computing.

Read More

Improved & Reviewed by:


Install OpenBLAS from source
Share this