[Rcpp-devel] OpenMp and IntegerVector
But your threads, be it pthreads or C++11 threads are not calling the RNG supplied by R,
are they? That is correct. Just reading and writing to c++ vectors (with some non-R deterministic computations in-between) Best, -- Hao Ye hye at ucsd.edu
On Mar 11, 2014, at 1:15 PM, Dirk Eddelbuettel <edd at debian.org> wrote:
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
-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20140311/490ef5c5/attachment.html>