Correct dealocation of streams in GPU memory

asked 2016-05-19 04:28:28 -0600

Malantur2928 gravatar image

updated 2016-05-19 09:22:49 -0600

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;}
edit retag flag offensive close merge delete