MarianoJT88 / PD-Flow

Real-time scene flow algorithm for RGB-D cameras
75 stars 31 forks source link

Potential GPU memory leak #7

Closed ChrGri closed 5 years ago

ChrGri commented 5 years ago

After running the code for a while, I noticed that the GPU memory consumptions increases over time, until the estimated RGB-D flow vanishes.

Adding " host void CSF_cuda::freeDeviceMemory() { ... cudaFree(colour_wf_dev); cudaFree(depth_wf_dev); } " to "pdflow_cudalib.cu" solved it for me.

MarianoJT88 commented 5 years ago

Thanks for reporting this. Could you commit that change? I will accept the change.

MarianoJT88 commented 5 years ago

It should be fixed now, I close the issue.