Re: [R-pkg-devel] Creating a Makevars that includes objects from another compiler

2015-06-05 Thread Charles Determan
I ultimately found more details in the 'Writing R Extensions' in another section (http://www.hep.by/gnu/r-patched/r-exts/R-exts_11.html). I needed to assign the object files to the OBJECTS variable with an '=' sign and remove anything below the .so block. The new block that successfully compiled

Re: [R-pkg-devel] Creating a Makevars that includes objects from another compiler

2015-06-05 Thread Charles Determan
A quick followup, even when I try and use the g++ I cannot seem to pass the objects (it keeps omitting the .o file generated from nvcc). How can I have my Makevars file pass a defined list of object files to the final shared library call? Alternate gpuRcuda.so block where the build output still

[R-pkg-devel] Creating a Makevars that includes objects from another compiler

2015-06-05 Thread Charles Determan
Greetings, Quick context, I have been working on developing a set of packages to make GPU computing as simple as possible with R. I have a functional package that works very nicely with OpenCL based code (gpuR - https://github.com/cdeterman/gpuR) but I also am building a companion CUDA backend pa