在Centos6.5编译R3.1.0


趁着新机器的热呼劲,重新编译了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 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值