Skip to content

Instantly share code, notes, and snippets.

@cheuerde
Last active August 29, 2015 14:07
Show Gist options
  • Select an option

  • Save cheuerde/20a9ab96b914c357d870 to your computer and use it in GitHub Desktop.

Select an option

Save cheuerde/20a9ab96b914c357d870 to your computer and use it in GitHub Desktop.
Changing BLAS library for R #install #R
# 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