R package that automatically uses several cores?

前端 未结 6 898
伪装坚强ぢ
伪装坚强ぢ 2020-11-29 16:28

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

6条回答
  •  忘掉有多难
    2020-11-29 17:12

    Microsoft R Open includes multi-threaded math libraries to improve the performance of R.It works in Windows/Unix/Mac all OS type. It's open source and can be installed in a separate directory if you have any existing R(from CRAN) installation. You can use popular IDE Rstudio also with this.From its inception, R was designed to use only a single thread (processor) at a time. Even today, R works that way unless linked with multi-threaded BLAS/LAPACK libraries.

    The multi-core machines of today offer parallel processing power. To take advantage of this, Microsoft R Open includes multi-threaded math libraries. These libraries make it possible for so many common R operations, such as matrix multiply/inverse, matrix decomposition, and some higher-level matrix operations, to compute in parallel and use all of the processing power available to reduce computation times.

    Please check the below link:

    https://mran.revolutionanalytics.com/rro/#about-rro

    http://www.r-bloggers.com/using-microsoft-r-open-with-rstudio/

提交回复
热议问题