Skip to content

Instantly share code, notes, and snippets.

@lxm1117
Forked from zachmayer/openblas.sh
Created January 7, 2018 22:05
Show Gist options
  • Select an option

  • Save lxm1117/3b7c1fc341631c61b7d26ca376d61ea1 to your computer and use it in GitHub Desktop.

Select an option

Save lxm1117/3b7c1fc341631c61b7d26ca376d61ea1 to your computer and use it in GitHub Desktop.
Mac BLAS
#Option 1 - install openblas with homebrew and link to CRAN installed R
brew tap homebrew/science
brew install openblas
ln -sf /usr/local/Cellar/openblas/0.2.12/lib/libopenblas.dylib /Library/Frameworks/R.framework/Resources/lib/libRblas.dylib
#Option 2 - install r with openblas through homebrew
brew tap homebrew/science
brew install r --with-openblas
#Option 1 - link CRAN installed R to veclib
ln -sf /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Versions/Current/libBLAS.dylib /Library/Frameworks/R.framework/Resources/lib/libRblas.dylib
#Option 2 - install r with veclib through homebrew
brew tap homebrew/science
brew install r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment