Skip to content

[Rcpp-devel] Some OpenMP tips (forwarded message from Simon Urbanek)

1 message · Dirk Eddelbuettel

#
Simon puts things quite clearly on the line in this r-devel mailing list
post.  This is more or less what I was trying to recommend to Michael
earlier, but Simon is of course a greater authority than me in these matters.

Rcpp should help in this. Transfer all data into pure C++ / STL containers,
so OpenMP work and transfer back.  Performance may well be better than the
serial case yet still be clearly sublinear as in the example I posted / added
to the Rcpp SVN a few days ago.

Dirk


-------------- next part --------------
An embedded message was scrubbed...
From: Simon Urbanek <simon.urbanek at r-project.org>
Subject: Re: [Rd] How to safely using OpenMP pragma inside a .C() function?
Date: Tue, 30 Aug 2011 01:36:24 +0100
Size: 2243
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20110829/9e695673/attachment.eml>
-------------- next part --------------