Ask Your Question

Malantur2928's profile - activity

2016-05-19 09:22:49 -0600 received badge  Editor (source)
2016-05-19 04:33:59 -0600 asked a question Correct dealocation of streams in GPU memory

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;}