Valgrind and CUDA: Are reported leaks real?
I have a very simple CUDA component in my application. Valgrind reports a lot of leaks and still-reachables, all related to the cudaMalloc calls. Are these leaks real? I call cudaFree for every cudaMalloc . Is this valgrind's inability to interpret GPU memory allocation? If these leaks are not real, can I suppress them and have valgrind only analyse the non-gpu part of the application? extern "C" unsigned int *gethash(int nodec, char *h_nodev, int len) { unsigned int *h_out = (unsigned int *)malloc(sizeof(unsigned int) * nodec); char *d_in; unsigned int *d_out; cudaMalloc((void**) &d_in,