Description
when i using ENGINEHEUR to do 1x1 no padding convolution, i found memory leak in calculate workspace size
if using ENGINE, no memory leak
Environment
GPU Type:RTX 3090, RTX4070, RTX 3070, RTX Titan(all of then reproduced the memory leak)
Nvidia Driver Version: 591.44
CUDA Version:12.9
CUDNN Version:9.17
Operating System + Version:win11 pro 23H2 22631.6199
Relevant Files
cudnnTest.zip (3.1 KB)
Steps To Reproduce
- create vs 2022 sln for this code file
- include cudnn headers and link cudnn lib
- compile this project
- open visual studio diagnostic tool, switch to “memory usage”
- Set breakpoint in loop for (int i = 0; i < 100; i++)
- start this program, until the program execute the loop at least once, pause and take a snapshot
- execute next loop and pause, take another snapshot
- vs will auto compare this 2 snapshots and report memory leak
- change the bool variable use_heur to false, repeat step 6-8, no memory leak reported in vs
you can see 0.54KB memory leak in one loop
maybe just i make mistakes in using cudnn api? Please help me, thanks
