arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1709.01195stat.CO
收藏

基于R语言的并行统计计算:两种体系结构的实例

Parallel Statistical Computing with R: An Illustration on Two Architectures

George Ostrouchov, Wei-Chen Chen, Drew Schmidt

摘要:

为了充分利用新的计算平台的优势,有必要开发具有并行计算能力的软件。这一点对统计学家和天体物理学家同样适用。R编程语言可能是当今统计学家最流行的软件环境,它有许多可用于并行计算的软件包。他们的方法多样,很难驾驭。有些人试图通过设计通用接口来缓解这个问题。然而,这些方法为用户提供了有限的灵活性;此外,它们通常对现代硬件的现实进行了很差的抽象,导致性能低下。我们简要介绍了两种基本的并行计算方法,它们与硬件现实紧密结合,允许用户了解其性能,并提供足够的能力来充分利用多核和多节点环境。我们通过一个拟合随机森林模型的简单例子来说明这两种方法。从串行算法开始,我们得到两个并行版本。我们的目标是说明单个处理器上多个核心的使用以及集群计算机中多个处理器的使用。我们将讨论这两个版本之间的差异,以及在每种情况下如何使用底层硬件。

英文摘要:

To harness the full benefit of new computing platforms, it is necessary to develop software with parallel computing capabilities. This is no less true for statisticians than for astrophysicists. The R programming language, which is perhaps the most popular software environment for statisticians today, has many packages available for parallel computing. Their diversity in approach can be difficult to navigate. Some have attempted to alleviate this problem by designing common interfaces. However, these approaches offer limited flexibility to the user; additionally, they often serve as poor abstractions to the reality of modern hardware, leading to poor performance. We give a short introduction to two basic parallel computing approaches that closely align with hardware reality, allow the user to understand its performance, and provide sufficient capability to fully utilize multicore and multinode environments. We illustrate both approaches by working through a simple example fitting a random forest model. Beginning with a serial algorithm, we derive two parallel versions. Our objective is to illustrate the use of multiple cores on a single processor and the use of multiple processors in a cluster computer. We discuss the differences between the two versions and how the underlying hardware is used in each case.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑