[Rcpp-devel] OpenMp and IntegerVector

Dirk Eddelbuettel edd at debian.org
Tue Mar 11 21:15:06 CET 2014


On 11 March 2014 at 13:06, Hao Ye wrote:
| > Just accessing / setting data structures should work (but test first...),
| > RNGs is clearly asking for trouble.
| 
| FWIW, I've been able to get this working using Rcpp and C++11 threads. (but using native C++ data structures, of course)

Sure, just as there are CRAN packages doing OpenMP with RNGs.  But your threads,
be it pthreads or C++11 threads are not calling the RNG supplied by R, are they?

If so, I'd love to see an example / would invite you to post an Rcpp Gallery article.

Dirk

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com


More information about the Rcpp-devel mailing list