search for: vecadd_cuda

Displaying 1 result from an estimated 1 matches for "vecadd_cuda".

2012 Jul 21
3
Use GPU in R with .Call
...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. (a) First, I wrote a R-C interface handles the R object using .Call (saved as VecAdd_cuda.c file) as below. =================file VecAdd_cuda.c=================== #include <R.h> #include <Rinternal.h> /************************************************/ /* "VecAdd_cuda.c" adds two double vectors using GPU. */ /************************************************/ exter...