[Rcpp-devel] New self-contained OpenMP example (Was: Stack imbalance warning when using Rcpp and OpenMP)

Davor Cubranic cubranic at stat.ubc.ca
Sat Aug 27 01:11:16 CEST 2011


On August 26, 2011 09:05:44 AM Dirk Eddelbuettel wrote:
> That's what I get with Davor's additions:
> 
> 5       funSerialRcpp(z)          100   8.960 2.242242      8.57     0.39
> 3 funSerialStdAlgRcpp(z)          100   8.975 2.245996      9.39     0.34

Interesting -- using std::transform was consistently faster for me in both 
Rcpp and std::vector variants.

I was using gcc 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4), on KUbuntu 11.04.

Davor


More information about the Rcpp-devel mailing list