Re: [Rd] Use GPU in R with .Call

2012-07-22 Thread Norm Matloff
[Sorry, originally sent to wrong list.] I'm not exactly sure what you are asking, Raymond, but this may answer your question. Say you have a file x.cu. After compiling with nvcc -c as you did, then do something like this: setenv PKG_LIBS "-L/usr/local/cuda/lib -lcudart" R CMD SHLIB x.o -o x.so

Re: [Rd] Use GPU in R with .Call

2012-07-22 Thread Raymond
Thank you--Brian for your reponse. I am really curious about how to compile GPU with R. I know it can be hard to learn, but still I want to program it by myself. -- View this message in context: http://r.789695.n4.nabble.com/Use-GPU-in-R-with-Call-tp4637333p4637356.html Sent fr

Re: [Rd] Use GPU in R with .Call

2012-07-22 Thread Brian G. Peterson
On 07/21/2012 06:35 PM, Raymond wrote: Hi All, I am a newbie to GPU programming. I wonder if anyone can help me with using GPU in .Call in R. Basically, I want to write a function that calcuates the sum of two double type vectors and implement this using GPU. My final goal is to m

[Rd] Use GPU in R with .Call

2012-07-21 Thread Raymond
Hi All, I am a newbie to GPU programming. I wonder if anyone can help me with using GPU in .Call in R. Basically, I want to write a function that calcuates the sum of two double type vectors and implement this using GPU. My final goal is to make such an implementation callable from R.