Dynamic Parallelization of R Functions
Stefan Böhringer
, The R Journal (2013) 5:2, pages 88-96.
Abstract R offers several extension packages that allow it to perform parallel computations. These operate on fixed points in the program flow and make it difficult to deal with nested parallelism and to organize parallelism in complex computations in general. In this article we discuss, first, of how to detect parallelism in functions, and second, how to minimize user intervention in that process. We present a solution that requires minimal code changes and enables to flexibly and dynamically choose the degree of parallelization in the resulting computation. An implementation is provided by the R package parallelize.dynamic and practical issues are discussed with the help of examples.
Received: 2013-03-29; online 2013-12-27@article{RJ-2013-029, author = {Stefan Böhringer}, title = {{Dynamic Parallelization of R Functions}}, year = {2013}, journal = {{The R Journal}}, doi = {10.32614/RJ-2013-029}, url = {https://doi.org/10.32614/RJ-2013-029}, pages = {88--96}, volume = {5}, number = {2} }