Gpu memory problem when using cudnn api function

I using cudnn libray in c language but I have one issue. i am using this source code.
int main{

after calling cudnnDestroy function when i check gpu memory by command “nvidia-smi -l 1”, i see used gpu memory decrease a little from 691 mb to 681mb,
can you help me solve this problem.

Hi @chienthan9401! I contacted the Kit team to help with your problem. I’ll post here when I have more information!

Does it continue to lose memory every time you run and close the app? If so it might be a memory leak issue. Otherwise you can more closely analyze what is going on (in particular, how much memory is really being consumed over time) by using tools like Nsight Compute.