[Rcpp-devel] OpenMP and Rinside

Peter Aberline Peter.Aberline at rms.com
Tue Jul 31 12:32:26 CEST 2012


> From: rcpp-devel-bounces at lists.r-forge.r-project.org [mailto:rcpp-devel-bounces at lists.r-forge.r-project.org] On Behalf Of David Ibarra Gómez

> I was mixing RInside with OpenMP. When I try to run the software, I get a message in three of the four threads (4 Cores Multicore).

> Exception caught: can only have one RInside instance
> Exception caught: can only have one RInside instance
> Exception caught: can only have one RInside instance


Hi David,

It's my understanding is that the RInside class is a singleton as R is strictly single threaded. The message  you are seeing if an exception thrown because the singleton constraint is violated.

There are some examples that ship with RInside which demonstrate the use of multiple RInside processes using MPI. They might help you achieve the parallelism you are wanting.

Correct me if I'm wrong, Dirk.

Thanks
Peter


This message and any attachments contain information that may be RMS Inc. confidential and/or privileged.  If you are not the intended recipient (or authorized to receive for the intended recipient), and have received this message in error, any use, disclosure or distribution is strictly prohibited.   If you have received this message in error, please notify the sender immediately by replying to the e-mail and permanently deleting the message from your computer and/or storage system.



More information about the Rcpp-devel mailing list