By using valgrind? or other software?
Thanks
cudaMalloc (and cuMemAlloc) are allocated in a different space from malloc. So, Valgrind by itself would not work. Ocelot might help. I wrote a memory leak debugger, but it only works on Windows–Google Code Archive - Long-term storage for Google Code Project Hosting..
cudaMalloc (and cuMemAlloc) are allocated in a different space from malloc. So, Valgrind by itself would not work. Ocelot might help. I wrote a memory leak debugger, but it only works on Windows–http://code.google.com/p/cuda-memory-debug/.
Using cuda-gdb.
set cuda memcheck on
Google dr dobbs cuda gdb then u will find and example.
Using cuda-gdb.
set cuda memcheck on
Google dr dobbs cuda gdb then u will find and example.