[分享] RcppParallel

看板R_Language作者 (攸藍)時間10年前 (2015/08/07 10:35), 10年前編輯推噓2(203)
留言5則, 1人參與, 最新討論串1/1
[關鍵字]: Rcpp, parallel computing [出處]: http://rcppcore.github.io/RcppParallel/#examples [重點摘要]: RcppParallel provides a complete toolkit for creating portable, high-performance parallel algorithms without requiring direct manipulation of operating system threads. RcppParallel includes: Intel Thread Building Blocks (v4.3), a C++ library for task parallelism with a wide variety of parallel algorithms and data structures (Windows, OS X, Linux, and Solaris x86 only). TinyThread, a C++ library for portable use of operating system threads. RVector and RMatrix wrapper classes for safe and convenient access to R data structures in a multi-threaded environment. High level parallel functions (parallelFor and parallelReduce) that use Intel TBB as a back-end on systems that support it and TinyThread on other platforms. 我自己試做了用RcppArmadillo配上RcppParallel: http://pastebin.com/KLwySJey http://pastebin.com/PPhkVv6x (只有p小時會快,p變大會漸慢) -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.163.8.105 ※ 文章網址: https://www.ptt.cc/bbs/R_Language/M.1438914924.A.0B0.html

08/07 12:31, , 1F
3Q~ What's diff among RcppParallel, snow or foreach..
08/07 12:31, 1F
snow, foreach是以R的function做為基礎的平行設計

08/07 15:41, , 2F
翻看Rcpp parallel關鍵字文章看到Norm Matloff部落格
08/07 15:41, 2F

08/07 15:42, , 3F
之前少注意也許大大們都知https://matloff.wordpress.com
08/07 15:42, 3F

08/07 15:45, , 4F
也有一些Parallel package Rth?沒有實作真的不知道差異
08/07 15:45, 4F

08/07 15:45, , 5F
只是題外話 anyway感謝版大介紹,慢慢再消化了..
08/07 15:45, 5F
rth我記得是parallel some R functions... 有點久遠不復記憶了XDD ※ 編輯: celestialgod (1.163.8.105), 08/07/2015 16:41:00
文章代碼(AID): #1Ln1bi2m (R_Language)
文章代碼(AID): #1Ln1bi2m (R_Language)