趁着新机器的热呼劲,重新编译了R3.1.0:
CentOS 6.5 x64
R 3.1.0
openblas 0.28
Rstudio 0.98
Rstudio Server 0.98
Windows下用openblas替换rblas,Rstudio就起不来了,似乎R重新编译就能解决问题,但MinGW openblas和R报了很多错误,在Linux上体现高性能的R以及Rstudio可视化开发是可行的。
1 EPEL源(EPEL上有openblas)
wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
2 安装openblas
rpm -ivh openblas*
3 编译R 3.1.0
使用openblas和lapack,允许Rstudio连接,在centos6.5上编译R的命令./configure --enable-R-shlib --with-blas="-lopenblas" --with-lapack=yes
4 Testing
张权在4C8T CentOS上跑的成绩
> x <- matrix(1:(6000 * 6000), 6000, 6000)
> system.time(tmp <- x %*% x)
用户 系统 流逝
15.563 0.044 15.611
刘思喆在2C4T ubuntu上跑的成绩
x <- matrix(1:(6000 * 6000), 6000, 6000)
system.time(tmp <- x %*% x)
user system elapsed
37.964 0.320 19.434