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 information about > that.
Package CORElearn (i am a coauthor) uses random number generation under OpenMP in C++. This requires to have a separate copy of the generator with its own memory for each thread. Do you want to use it in C or C++? Petr Savicky. ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel