[Rcpp-devel] OpenMp and IntegerVector
armstrong.whit at gmail.com
Tue Mar 11 21:32:40 CET 2014
you can also use intel TBB, just depends on your preference for syntax
I suppose. I've never tried to use openMP threads, but intel tbb
works quite nicely.
example here based off of rrcov package:
Sorry, Dirk, this doesn't use Rcpp (I was trying not to completely
rewrite the original source) but seemed quite relevant to this
An RcppArmadillo version of rrcov would be a nice addition and easy to
do from forking my fork.
On Tue, Mar 11, 2014 at 4: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 Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
> Rcpp-devel mailing list
> Rcpp-devel at lists.r-forge.r-project.org
More information about the Rcpp-devel