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/debugging-a-CUDA-enabled-R-package-with-cuda-memcheck-tp4691669p4691765.html Sent from the R devel mailing list archive at Nabble.com.