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] Use CUDA primary context to work with PyTorch and Numba. #5992

Merged
merged 1 commit into from
Sep 6, 2022

Conversation

turbo0628
Copy link
Member

Related issue = #5502

PR #5891 solved the problem but the fix is fragile. Using primary context instead of cuCtxCreate could also work with PyTorch and Numba. The context management code are no longer needed and reverted.

@turbo0628 turbo0628 requested a review from ailzhang September 6, 2022 09:08
@turbo0628 turbo0628 added the full-ci Run complete set of CI tests label Sep 6, 2022
Copy link
Contributor

@ailzhang ailzhang left a comment

Choose a reason for hiding this comment

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

Nice!!!

@ailzhang ailzhang merged commit 753ace9 into taichi-dev:master Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
full-ci Run complete set of CI tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants