[Rcpp-devel] OpenMP/Rcpp Error: C stack usage is too close to the limit

Dirk Eddelbuettel edd at debian.org
Sat Mar 19 21:10:22 CET 2016

On 19 March 2016 at 15:48, aakremena at aol.com wrote:
| Dirk,
| Thanks for the quick reply.
| Just to let you know that
|     1. When I replace Rcout with cout, the nof function is running just fine
|              Why is Rcout messing up?
|     2. When omp_set_num_threads is explicitly declared before the void nof(int
| nn_thrds) function, the diagnostic warnings disappear.
|             Why?  I thought these function WERE already explicitly declared in
| the omp.h header file...  What am I missing?

What is the "Number One Rule" of multi-threaded programming with R?

It is stated numerous times in multiple places.


http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org

More information about the Rcpp-devel mailing list