- Mastering Parallel Programming with R
- Simon R. Chapple Eilidh Troup Thorsten Forster Terence Sloan
- 250字
- 2021-07-02 16:41:54
Chapter 1. Simple Parallelism with R
In this chapter, you will start your journey toward mastery of parallelism in R by quickly learning to exploit the multicore processing capability of your own laptop and travel onward to our first look at how you can most simply exploit the vast computing capacity of the cloud.
You will learn about lapply()
and its variations supported by R's core parallel
package as well as about the segue
package that enables us to utilize Amazon Web Services (AWS) and the Elastic Map Reduce (EMR) service. For the latter, you will need to have an account set up with AWS.
Our worked example throughout this chapter will be an iterative solver for an ancient puzzle known as Aristotle's Number Puzzle. Hopefully, this will be something new to you and pique your interest. It has been specifically chosen to demonstrate an important issue that can arise when running code in parallel, namely imbalanced computation. It will also serve to help develop our performance benchmarking skills—an important consideration in parallelism—measuring overall computational effectiveness.
The examples in this chapter are developed using RStudio version 0.98.1062 with the 64-bit R version 3.1.0 (CRAN distribution) running on a mid-2014 generation Apple MacBook Pro OS X 10.9.4 with a 2.6 GHz Intel Core i5 processor and 16 GB memory. Some of the examples in this chapter will not be able to run with Microsoft Windows, but should run without problem on all variants of Linux.
- 自愿審計動機與質(zhì)量研究:基于我國中期財務(wù)報告審計的經(jīng)驗證據(jù)
- 會計信息化基礎(chǔ)(金蝶版)
- 陜西文物年鑒·2015
- 陜西國家統(tǒng)計調(diào)查專題研究集萃(2006—2015)
- AO2011實用手冊
- 風(fēng)險導(dǎo)向?qū)徲嫓?zhǔn)則實施效果研究
- 企業(yè)并購審查中的相關(guān)市場界定:理論與案例
- 中國審計市場:制度變遷與競爭行為
- 政策建模技術(shù):CGE模型的理論與實現(xiàn)
- 傳習(xí)集2
- 內(nèi)審人員進階之道:內(nèi)部審計操作實務(wù)與案例解析
- 看穿一切數(shù)字的統(tǒng)計學(xué)
- 統(tǒng)計學(xué)視角下的金融高頻數(shù)據(jù)挖掘理論與方法研究
- 審計定價問題研究
- 2014年注冊會計師(CPA)全國統(tǒng)考專用輔導(dǎo)教材系列:審計(名師解讀版)