简体   繁体   中英

installing openBLAS for R on macbook

I am looking for a faster way of calculating cosine similarity (because I have a large matrix of 2.8Gb).

I found a coop package where was written something about "A good BLAS library," so I started digging and found out that I should use openBLAS library to make it faster. I read the installation guide and many other articles.

How can I install and run it in R on macbook?

osX has a great blas library already installed which you can use as an alternative. you only need to link it:

# 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

see here for source and details

Do not use OpenBLAS on osX. Apple already has a very optimized version of BLAS which is vecLib .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM