Skip to content

Instantly share code, notes, and snippets.

@zachmayer
Last active December 19, 2015 14:09
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zachmayer/5967688 to your computer and use it in GitHub Desktop.
Save zachmayer/5967688 to your computer and use it in GitHub Desktop.
cd /Library/Frameworks/R.framework/Resources/lib
# for vecLib use
ln -sf libRblas.vecLib.dylib libRblas.dylib
# for R reference BLAS use
ln -sf libRblas.0.dylib libRblas.dylib
cd /Library/Frameworks/R.framework/Resources/lib
# for vecLib use
ln -sf /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Versions/Current/libBLAS.dylib libRblas.dylib
# for R reference BLAS use
ln -sf libRblas.0.dylib libRblas.dylib
cd /users/zach/source/
git clone git://github.com/xianyi/OpenBLAS.git
cd OpenBLAS
make CC=clang
make PREFIX=/users/zach/source/OpenBLAS install
cd /Library/Frameworks/R.framework/Resources/lib
# for openBLAS use
ln -sf /users/zach/source/OpenBLAS/lib/libopenblas.dylib libRblas.dylib
# for R reference BLAS use
ln -sf libRblas.0.dylib libRblas.dylib
#Run install.packages('SuppDists') in R before running this script
cd ~/
curl http://r.research.att.com/benchmarks/R-benchmark-25.R -O
cat R-benchmark-25.R | time R --slave
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment