Skip to content
Back to formatted view

Raw Message

Message-ID: <CAK1kXLw+xt6_C8wRBGWSAPfEV256n5rFV_3_KsO4Mdohn39D2Q@mail.gmail.com>
Date: 2014-03-11T21:40:39Z
From: Hao Ye
Subject: [Rcpp-devel] OpenMp and IntegerVector
In-Reply-To: <220C8289-06DB-444A-B952-DF97177D41CF@ucsd.edu>

> 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>