-
-
Save dragosmg/e57a3d48327cf9c1ed56826becaf0b0e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| These code snippets have been tested on R 3.1.0 and Mac OS 10.9.3. They presumably do *not* work on R 2.X! | |
| ## Enter these commands in the Mac OS Terminal | |
| # use faster vecLib library | |
| cd /Library/Frameworks/R.framework/Resources/lib | |
| ln -sf /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Versions/Current/libBLAS.dylib libRblas.dylib | |
| # return to default settings | |
| cd /Library/Frameworks/R.framework/Resources/lib | |
| ln -sf libRblas.0.dylib libRblas.dylib | |
| # R script for benchmarking: | |
| # http://r.research.att.com/benchmarks/R-benchmark-25.R | |
| # On 2011 Macbook Pro (2.7 GHz Core i7): 43 sec. (Rblas) vs. 9 sec. (vecLib) |
Author
dragosmg
commented
Nov 24, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment