[Rd] OpenMP and random number generation

2012-02-22 Thread Mathieu Ribatet
Dear all, Now that R has OpenMP facilities, I'm trying to use it for my own package but I'm still wondering if it is safe to use random number generation within a OpenMP block. I looked at the R writing extension document both on the OpenMP and Random number generation but didn't find any

Re: [Rd] OpenMP and random number generation

2012-02-22 Thread Prof Brian Ripley
On 22/02/2012 08:23, Mathieu Ribatet wrote: Dear all, Now that R has OpenMP facilities, Hmm, not exactly new. I'm trying to use it for my own package but I'm still wondering if it is safe to use random number generation within a OpenMP block. I looked at the R writing extension document

Re: [Rd] OpenMP and random number generation

2012-02-22 Thread Karl Forner
Hello, For your information, I plan to release soon a package with a fast and multithreaded aware RNG for C++ code in R packages. It is currently part of one of my (not yet accepted) packages and I want to extract it into its own package. I plan to do some quick benchmarks too. Of course I can

Re: [Rd] OpenMP and random number generation

2012-02-22 Thread Petr Savicky
Hi. Now that R has OpenMP facilities, I'm trying to use it for my own package but I'm still wondering if it is safe to use random number generation within a OpenMP block. I looked at the R writing extension document both on the OpenMP and Random number generation but didn't find any