Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

Correct dealocation of streams in GPU memory

$
0
0
The following code creates one stream. nvidia-smi shows that 76 megabytes on GPU-memory are needed. What is the correct way to close the stream and free the memory? int main(int argc, char** argv){ cv::cuda::Stream* stream = new cv::cuda::Stream; stream[0].queryIfComplete(); delete stream; return 0;}

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>