You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using UMat with OpenCL on Intel videocards in multiple host threads causes GPU memory leak.
Steps to reproduce
Create function that: loads image into cv::Mat, copies it to cv::UMat using copyTo method, runs some OpenCL-related function like CascadeClassifier's detectMultiScale or cv::equalizeHist, and returns.
Create loop: create thread, run function from 1 in this thread, join thread.
Watch GPU memory increasing indefinitely.
Additional notes
If not using Intel GPU (tested on various NVidia GPUs), there's no memory leak.
If using OpenCL from fixed number of threads (for example, in fixed-size threadpool), there's no memory leak.
Even if I release UMat's memory using release() method, memory will leak.
The text was updated successfully, but these errors were encountered:
System information (version)
Detailed description
Using UMat with OpenCL on Intel videocards in multiple host threads causes GPU memory leak.
Steps to reproduce
cv::Mat
, copies it tocv::UMat
usingcopyTo
method, runs some OpenCL-related function like CascadeClassifier'sdetectMultiScale
orcv::equalizeHist
, and returns.Additional notes
release()
method, memory will leak.The text was updated successfully, but these errors were encountered: