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 the R devel mailing list archive at Nabble.com.