Last active
August 29, 2015 14:07
-
-
Save cheuerde/20a9ab96b914c357d870 to your computer and use it in GitHub Desktop.
Changing BLAS library for R #install #R
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
| # it is straightforward to change the BLAS-library that is used by an R-instance. | |
| # For this we can use the environmental variable LD_PRELOAD. | |
| # This variable will load any library specified prior to all others, so we | |
| # can define a priority for certain libraries | |
| # | |
| # So in terms of R we would do something like this: | |
| # imagine my BLAS-library is located in /home/user/myBLAS/BLAS.so | |
| # invoke R with 'myBLAS' | |
| LD_PRELOAD=/home/user/myBLAS/BLAS.so R | |
| # For convenience we could define scripts for various BLAS libraries | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment