how to detect the cuda memory leak

By using valgrind? or other software?
Thanks