Skip to content

[wip] Add npp_stream_ctx cache #800

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Dan-Flores
Copy link
Contributor

No description provided.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Aug 1, 2025
err == cudaSuccess,
"cudaStreamGetFlags failed: ",
cudaGetErrorString(err));
return nppCtxPtr;
Copy link
Member

@NicolasHug NicolasHug Aug 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I think this is the problem: we're returning a pointer to nppCtx, which was allocated on the stack, not on the heap. So the pointer's value (and what it points to) is only valid within the createNppStreamContext function, not after it returns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants