Unless things have changed CUDA and R cpp don't always play nicely together.  I have an example, that I wrote up I'll try and dig it up to send to you.  The idea is that you must separate the CUDA code and Rcpp code and compile separately and then link together.  There are some header conflicts in Rcpp that CUDA does not like.<div>
<br></div><div>-Andrew<br><br><div class="gmail_quote">On Wed, Feb 1, 2012 at 8:15 AM, Chris DuBois <span dir="ltr"><<a href="mailto:chris.dubois@gmail.com">chris.dubois@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span>Hi all,<div><br></div><div>Does anybody know where I might find an example of using CUDA with Rcpp?  </div><div><br></div><div>I've looked around the internet a bit (and on this list), but have yet to find too much.  I saw some discussion on optimizing a 2d convolution, but only references to the possibility of using CUDA.  I've also been using Dirk's OpenMP example in Rcpp/examples.</div>


<div><br></div><div>I'm trying to gauge how hard this would be before I spend too much time down this route.  My objects that need to be shared may be too large for this approach.</div><div><br></div><div>Any advice greatly appreciated.</div>
<span class="HOEnZb"><font color="#888888">

<div>Chris</div></font></span></span>
<br>_______________________________________________<br>
Rcpp-devel mailing list<br>
<a href="mailto:Rcpp-devel@lists.r-forge.r-project.org">Rcpp-devel@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><br></blockquote></div><br></div>