R中是否有用于并行矩阵求逆的软件包 [英] Is there a package for parallel matrix inversion in R

查看:146
本文介绍了R中是否有用于并行矩阵求逆的软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有使用并行计算在R中进行矩阵求逆的软件包?

is there a package for matrix inversion in R using parallel computation?

谢谢!

你好.我在安装HiPLARb软件包时遇到问题,这是我所做的:

Hello. I am having trouble installing the HiPLARb package, here is what I did:

下载自动安装程序脚本: http://www.hiplar.org/downloads/HiPLARb.安装程序

Download auto-installer script: http://www.hiplar.org/downloads/HiPLARb.Installer

./HiPLARb.Installer --with-openblas --no-gpu --prefix=/home/kaiyin/mylib 一切正常,所有必需的前提库都已成功安装,还安装了R 2.15.2的修补程序版本

./HiPLARb.Installer --with-openblas --no-gpu --prefix=/home/kaiyin/mylib everything went ok, all prerequesite libraries installed succesully, also the patched version of R 2.15.2

http://www.hiplar.org/downloads/下载软件包HiPLARb_0.1.3.tar.gz

修改shell路径以在修补的R bin目录之前添加.

Modify the shell PATH to prepend the patched R bin directory.

R CMD INSTALL --configure-args="--with-lapack= \ 
-L/home/kaiyin/mylib/lib\ -lopenblas \ 
--with-plasma-lib=/home/kaiyin/mylib \ 
--with-magma-lib=/home/kaiyin/mylib" HiPLARb_0.1.3.tar.gz 

我遇到以下错误:

配置:错误:无法识别的选项:`-L/home/kaiyin/mylib/lib -lopenblas'

configure: error: unrecognized option: `-L/home/kaiyin/mylib/lib -lopenblas'

尝试`./configure --help'以获得更多信息

Try `./configure --help' for more information

错误:软件包HiPLARb的配置失败

ERROR: configuration failed for package HiPLARb

请帮助,谢谢!

由于-lopenblas不是有效的配置选项,因此我将其删除并重试:

Since -lopenblas is not a valid configure option, I removed it and retried:

R CMD INSTALL --configure-args="--with-lapack=/home/kaiyin/mylib/lib\
--with-plasma-lib=/home/kaiyin/mylib \ 
--with-magma-lib=/home/kaiyin/mylib" ../HiPLARb_0.1.3.tar.gz 

这次是新错误:

configure: error: invalid variable name: ` --with-magma-lib'


第三次尝试:


3rd try:

R CMD INSTALL --configure-args="--with-lapack=/home/kaiyin/mylib/lib\
--with-plasma\
--with-magma\ 
--with-plasma-lib=/home/kaiyin/mylib \ 
--with-magma-lib=/home/kaiyin/mylib" ../HiPLARb_0.1.3.tar.gz 

configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type:  
checking "if PLASMA libraries exist"... configure: WARNING: "No PLASMA option given."
configure: WARNING: "No CUDA option given."
configure: WARNING: "No MAGMA option given."
configure: error: Cannot find MAGMA or PLASMA Libraries. Please install MAGMA, PLASMA or both. Please see the install guide for more details.

推荐答案

是,有几个;但这取决于您的平行含义.

Yes, several; but it depends on what you mean by parallel.

如果您的意思是非常大规模的并行性(例如无法容纳在一台计算机上,并且您需要集群来处理),则可以使用 PBD软件包.这些要求安装诸如MPI和Scalapack之类的软件包,但它们通常已经可以在用于大型技术计算的任何群集上使用.

If you mean very large scale parallelism, like won't fit on a single machine and you need a cluster to deal with it, then there are the PBD packages. These require packages like MPI and Scalapack t be installed, but they will typically be available on any cluster used for big technical computing already.

如果该矩阵适合单个节点,并且您只想将所有CPU扔给它,则 HiPLAR 软件包可以使用基于PLASMA或MAGMA库(再次需要安装)的多个cpus甚至GPU.

If the matrix will fit on a single node and you just want to throw all of your CPUs at it, the HiPLAR package can make use of multiple cpus or even GPUs based on the PLASMA or MAGMA libraries (which again need to be installed).

通常, CRAN HPC任务视图是有用的清单这些类型的软件包中.

More generally, the CRAN HPC task view is a useful listing of these sorts of packages.

这篇关于R中是否有用于并行矩阵求逆的软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆