JorgeDeJesus

Compilation of R-cran with GCC CPU march native flag

Feb 12th, 2016
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. #Compilation of R-cran with GCC CPU march native flag
  2. wget http://cran.r-project.org/src/base/R-3/R-3.1.2.tar.gz
  3. tar -xzf R-3.1.2.tar.gz
  4. apt-get install -y gcc gfortran g++ libreadline6-dev xserver-xorg-dev libxt-dev libxmu-headers tcl8.6-dev tk8.6-dev
  5. cd /home/src/R-3.1.2
  6. #Note: Updated the compilation flags for Ofast and mmarc
  7.  
  8. CFLAGS="-Ofast -march=native " CXXFLAGS="${CFLAGS}" FCFLAGS="${CFLAGS}" ./configure --with-cairo --with-x --with-libpng --with-jpeglib --with-libtiff --enable-R-shlib --enable-BLAS-shlib --enable-memory-profiling --with-readline --with-tcltk --with-tcl-config=/usr/lib/x86_64-linux-gnu/tcl8.6/tclConfig.sh --with-tk-config=/usr/lib/x86_64-linux-gnu/tk8.6/tkConfig.sh
  9.  
  10. R is now configured for x86_64-pc-linux-gnu
  11.  
  12. Source directory: .
  13. Installation directory: /usr/local
  14.  
  15. C compiler: gcc -Ofast -march=native -pipe -mtune=native
  16. Fortran 77 compiler: f95 -g -O2
  17.  
  18. C++ compiler: g++ -Ofast -march=native -pipe -mtune=native
  19. C++ 11 compiler: g++ -std=c++11 -Ofast -march=native -pipe -mtune=native
  20. Fortran 90/95 compiler: gfortran -Ofast -march=native -pipe -mtune=native
  21. Obj-C compiler:
  22.  
  23. Interfaces supported: X11, tcltk
  24. External libraries: readline, zlib, lzma, PCRE, curl
  25. Additional capabilities: PNG, JPEG, TIFF, NLS, cairo, ICU
  26. Options enabled: shared R library, shared BLAS, R profiling, memory profiling
  27.  
  28. Capabilities skipped:
  29. Options not enabled:
  30.  
  31. Recommended packages: yes
  32.  
  33. configure: WARNING: you cannot build info or HTML versions of the R manuals
  34. configure: WARNING: you cannot build PDF versions of the R manuals
  35. configure: WARNING: you cannot build PDF versions of vignettes and help pages
Advertisement
Add Comment
Please, Sign In to add comment