Skip to content
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

cuda context cleanup #3515

Open
totaam opened this issue Apr 5, 2022 · 1 comment
Open

cuda context cleanup #3515

totaam opened this issue Apr 5, 2022 · 1 comment
Labels
encoding enhancement New feature or request

Comments

@totaam
Copy link
Collaborator

totaam commented Apr 5, 2022

Both the nvjpeg encoder and decoder define a get_device_context, nvenc does its own thing in init_module..

It's all unnecessarily messy.

Also, the cuda context object could be cached and re-used for different windows, see #3209

@totaam totaam added enhancement New feature or request encoding labels Apr 5, 2022
@totaam totaam mentioned this issue Apr 5, 2022
@totaam
Copy link
Collaborator Author

totaam commented Apr 26, 2022

Perhaps this can be tied to #3286 to minimize the cost of setting up the cuda context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
encoding enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant