[Rd] cuda-memcheck to debug CUDA-enabled R packages

landau Will.Landau at gmail.com
Tue Jun 3 21:44:12 CEST 2014

I'm building a simple R extension around a CUDA-enabled dynamic library, and
I want to run the whole package with cuda-memcheck for debugging purposes. I
can run it just fine with Valgrind:

$ R --no-save -d valgrind < test.R

However, if I try the same thing with cuda-memcheck,

$ R --no-save -d cuda-memcheck < test.R

I get:

*** Further command line arguments ('--no-save ') disregarded
*** (maybe use 'run --no-save ' from *inside* cuda-memcheck)

Fatal error: you must specify '--save', '--no-save' or '--vanilla'
========= No CUDA-MEMCHECK results found

So cuda-memcheck is eating up an argument that's supposed to go to R. What
can I do about this? 

View this message in context: http://r.789695.n4.nabble.com/cuda-memcheck-to-debug-CUDA-enabled-R-packages-tp4691668.html
Sent from the R devel mailing list archive at Nabble.com.

More information about the R-devel mailing list