When to use OpenMP vs DoParallel?

Viewed 76

For a for loop in R that is parallelized with DoParallel::foreach, is there any advantage to porting the code to Rcpp and using OpenMP to do the parallelization instead? Assuming that the code itself runs equally fast in R and C, are there any speed gains to be expected?

0 Answers
Related