Last active
November 16, 2018 00:35
-
-
Save mbk0asis/ca4faa9a0a97296053b8c837b0b4de34 to your computer and use it in GitHub Desktop.
configure R with BLAS
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
| # Ubuntu 16.04 | |
| # R-3.4.1 | |
| 1. Download R source package | |
| 2. Install dependencies | |
| $ sudo apt-get install fort77 xorg-dev liblzma-dev libblas-dev gfortran gcc-multilib gobjc++ aptitude libreadline-dev | |
| 3. Install 'open-blas' | |
| $ sudo apt-get install libopenblas-base | |
| 4. Configure and install | |
| $ ./configure --prefix=/opt/R/3.4.1 --enable-R-shlib --with-blas --with-lapack | |
| $ make | |
| $ sudo make install | |
| 5. Load BLAS linked R version (?) | |
| $ sudo nano /etc/rstudio/profiles | |
| # copy and paste the following line into the profiles | |
| r-version = /opt/R/YOUR_VERSION/bin/R | |
| 6. Start up R | |
| 7. Check if BLAS working with R | |
| $ ps aux | grep exec/R | |
| bio0 24571 0.0 0.0 11288 1096 pts/2 S+ 13:32 0:00 grep --color=auto ression | |
| $ lsof -p [Your P ID - e.g. 24571] | grep 'blas' | |
| R 18065 nathanvan mem REG 8,1 19493200 13640678 /usr/lib/openblas-base/libopenblas.so.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment