Last active
January 19, 2023 06:20
-
-
Save bmmalone/1b5f9ff72754c7d4b313c0b044c42684 to your computer and use it in GitHub Desktop.
Install OpenBLAS and add it to the path
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# download the OpenBLAS source | |
git clone https://github.com/xianyi/OpenBLAS | |
# compile the library | |
cd OpenBLAS && make FC=gfortran |
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
Hello,
I am using ubuntu 18.0.4, if I installed Openblas using
sudo apt-get install libopenblas-dev
command. Does that mean it is not necessary to install again Openblas usinggit clone https://github.com/xianyi/OpenBLAS
? If not, what's the difference between those two packages.