On 31 July 2012 at 12:23, David Ibarra Gómez wrote:
| Hello,
| 
|  
| 
|                 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

R is (famously) single-threaded so you cannot simply instantiate several
RInside object and just pray that it will work.  It won't.

| It's about the name of the instance?
| 
| Any fast solution (but RCPP direct)?

Rcpp can be used with OpenMP if you are careful.

Dirk
 
  
| 
|  
| 
| Kind regards
| 
|  
| 
| David Ibarra
| 
|  
| 
| 
| 
-------------------------------------------------------------------------------
| Disclaimer: http://disclaimer.aqualogy.net/
| 
| ----------------------------------------------------------------------
| _______________________________________________
| Rcpp-devel mailing list
| [email protected]
| https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
-- 
Dirk Eddelbuettel | [email protected] | http://dirk.eddelbuettel.com  
_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to