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

2015-06-10 Thread landau
Counter-edit: it turns out that that kind of hack doesn't work. See this post . -- View this message in context: http://r.789695.n4.nabble.com/cuda-memcheck-to-debug-CUDA-enabled-R-packag

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

2014-06-05 Thread landau
Edit: I solved this problem by putting R CMD BATCH --no-save < test.R into a script (say, run.sh), and then running $ cuda-memcheck ./run.sh -- View this message in context: http://r.789695.n4.nabble.com/cuda-memcheck-to-debug-CUDA-enabled-R-packages-tp4691668p4691766.html Sent from th

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

2014-06-03 Thread landau
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 c