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

Dirk Eddelbuettel edd at debian.org
Sat Aug 27 01:33:08 CEST 2011


On 26 August 2011 at 16:11, Davor Cubranic wrote:
| 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.

Both those two times are basically instinguishable.  And this is timed on my
moderately busy server so there is some noise.

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

Also Ubuntu 11.04 here.

Dirk

-- 
Two new Rcpp master classes for R and C++ integration scheduled for 
New York (Sep 24) and San Francisco (Oct 8), more details are at
http://dirk.eddelbuettel.com/blog/2011/08/04#rcpp_classes_2011-09_and_2011-10
http://www.revolutionanalytics.com/products/training/public/rcpp-master-class.php


More information about the Rcpp-devel mailing list