Unit 0.3.3 Installing BLIS¶
For our programming assignments, we will need to install the BLAS-like Library Instantiation Software (BLIS). You will learn more about this library in the enrichment in Unit 1.5.2.
The following steps will install BLIS if you are using the Linux OS (on a Mac, there may be a few more steps, which are discussed later in this unit.)
Visit the BLIS Github repository.
Click onand copy
In a terminal session, in your home directory, enter
git clone https://github.com/flame/blis.git(to make sure you get the address right, you will want to paste the address you copied in the last step.)
Change directory to
Instructions on how to configure, build, and install with OpenMP turned on.
./configure -t openmp -p ~/blis auto make -j8 make check -j8 make installThe -p ~/blis installs the library in the subdirectory ~/blis of your home directory, which is where the various exercises in the course expect it to reside.
If you run into a problem while installing BLIS, you may want to consult
On Mac OS-X
You may need to install Homebrew, a program that helps you install various software on you mac. Warning: you may need "root" privileges to do so.
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"Keep an eye on the output to see if the “Command Line Tools” get installed. This may not be installed if you already have Xcode Command line tools installed. If this happens, post in the "Discussion" for this unit, and see if someone can help you out.
Use Homebrew to install the
$ brew install gccCheck if gcc installation overrides clang:
$ which gccThe output should be
/usr/local/bin. If it isn't, you may want to add
/usr/loca/binto "the path." I did so by inserting
export PATH="/usr/local/bin:$PATH"into the file
.bash_profilein my home directory. (Notice the "period" before "
Now you can go back to the beginning of this unit, and follow the instructions to install BLIS.