From Will.Landau at gmail.com  Tue Jun  3 21:44:12 2014
From: Will.Landau at gmail.com (landau)
Date: Tue, 3 Jun 2014 12:44:12 -0700 (PDT)
Subject: [Rd] cuda-memcheck to debug CUDA-enabled R packages
Message-ID: <1401824622278-4691668.post@n4.nabble.com>

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)

========= 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.



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