自动使用多个内核的R包? [英] R package that automatically uses several cores?

查看:95
本文介绍了自动使用多个内核的R包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到R在执行需要大量计算的程序之一时仅使用一个内核.我想利用我的多核处理器来使程序运行更快. 我尚未对此问题进行深入调查,但是希望您能从您的评论中受益,因为我对计算机科学缺乏了解,而且我很难获得有关该主题的容易理解的信息.

I have noticed that R only uses one core while executing one of my programs which requires lots of calculations. I would like to take advantage of my multi-core processor to make my program run faster. I have not yet investigated the question in depth but I would appreciate to benefit from your comments because I do not have good knowledge in computer science and it is difficult for me to get easily understandable information on that subject.

是否有允许R在需要时自动使用多个内核的软件包?

Is there a package that allows R to automatically use several cores when needed?

我想这不是那么简单.

推荐答案

R只能在附加软件包的帮助下使用多个内核,并且只能用于某些类型的操作.有关这些选项的详细信息,请参见CRAN上的高性能计算任务视图

R can only make use of multiple cores with the help of add-on packages, and only for some types of operation. The options are discussed in detail on the High Performance Computing Task View on CRAN

更新:由于R附带的 parallel 软件包作为推荐软件包,因此不一定需要R版本2.14.0中的附加软件包. parallel 包括多核 snow 程序包中的功能,

Update: From R Version 2.14.0 add-on packages are not necessarily required due to the inclusion of the parallel package as a recommended package shipped with R. parallel includes functionality from the multicore and snow packages, largely unchanged.

这篇关于自动使用多个内核的R包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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