Skip to content

Instantly share code, notes, and snippets.

@bmmalone
Last active January 19, 2023 06:20
Show Gist options
  • Save bmmalone/1b5f9ff72754c7d4b313c0b044c42684 to your computer and use it in GitHub Desktop.
Save bmmalone/1b5f9ff72754c7d4b313c0b044c42684 to your computer and use it in GitHub Desktop.
Install OpenBLAS and add it to the path
### Lines to add to .bashrc
# for the OpenBLAS library
export LD_LIBRARY_PATH=/path/to/OpenBLAS:$LD_LIBRARY_PATH
export BLAS=/path/to/libopenblas.a
export ATLAS=/path/to/libopenblas.a
# download the OpenBLAS source
git clone https://github.com/xianyi/OpenBLAS
# compile the library
cd OpenBLAS && make FC=gfortran
@bmmalone
Copy link
Author

bmmalone commented Oct 29, 2020

Hey @nagarjunvinukonda: The versions are probably about the same; sometimes, the versions in the apt-get repositories are a little behind the version in the main repository.

The main difference is that using sudo requires, well, sudo/root access, while installing via the script can be done without root access. Thus, if you are in a computing environment where you don't have root access, sudo isn't possible.

It's also a little easier if you need to install multiple versions of openblas for some reason (since the location of the versions is controlled explicitly, while the location of files from apt-get can be difficult to track).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment