Skip to content

Cuda out memory issue #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Kisshine007 opened this issue Jan 28, 2022 · 1 comment
Open

Cuda out memory issue #5

Kisshine007 opened this issue Jan 28, 2022 · 1 comment

Comments

@Kisshine007
Copy link

When running the program, Cuda memory continues to increase until there is not enough memory to make an error.

I am test using rtsp stream.

@Kisshine007
Copy link
Author

Kisshine007 commented Feb 7, 2022

/src/decoder.cpp

@@ -83,5 +83,6 @@ videoFrameList* videoDecoder_decode(videoDecoderHandle handle, u_int8_t* in, siz
cudaMemcpy((void*)(frameList->pFrames+iframeList->perFrameSize), (uint8_t)dpFrame, output_size, cudaMemcpyDeviceToHost);
}
cuMemFree(dpFrame);
cuMemFree(nv12Frame); // Add cuMemFree
return frameList;
}


After add cuMemFree, the program running is ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant