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

UCT/CUDA: return device ctx when checking for active ctx #6393

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Akshay-Venkatesh
Copy link
Contributor

What

Useful to get a context handle (either runtime allocated primary context or driver api allocated context) rather than just checking if there exists a valid context.

@swx-jenkins3
Copy link
Collaborator

Can one of the admins verify this patch?

@Akshay-Venkatesh
Copy link
Contributor Author

cc @yosefe @bureddy Can you provide a review when possible? Adding this PR to satisfy a requirement in this PR #6352 and specifically to address this #6352 (comment)

@brminich
Copy link
Contributor

ok to test

@brminich
Copy link
Contributor

coverity errors are relevant

int state;

if (CUDA_SUCCESS == cuCtxGetDevice(&dev)) {
cuDevicePrimaryCtxGetState(dev, &flags, &state);
Copy link
Contributor

Choose a reason for hiding this comment

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

missing return value check?

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

Successfully merging this pull request may close these issues.

None yet

4 participants