-
Notifications
You must be signed in to change notification settings - Fork 175
cuda_core forward compatibility changes. #722
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
Conversation
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
/ok to test |
/ok to test |
This comment has been minimized.
This comment has been minimized.
/ok to test |
Auto-sync is disabled for ready for review pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
@@ -476,7 +476,7 @@ def create_conditional_handle(self, default_value=None) -> driver.CUgraphConditi | |||
default_value = 0 | |||
flags = 0 | |||
|
|||
status, _, graph, _, _ = handle_return(driver.cuStreamGetCaptureInfo(self._mnff.stream.handle)) | |||
status, _, graph, *_, _ = handle_return(driver.cuStreamGetCaptureInfo(self._mnff.stream.handle)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q: If we're packing anyway, maybe we pack them together?
status, _, graph, *_, _ = handle_return(driver.cuStreamGetCaptureInfo(self._mnff.stream.handle)) | |
status, _, graph, *_ = handle_return(driver.cuStreamGetCaptureInfo(self._mnff.stream.handle)) |
I took a look at the graphs side and while I'm ok with it, it does feels over-engineered. Thinking out loud, what if we move these weird APIs to a compatibility file/layer? At least this way we're keeping these tricks contained in a single place. Oh and by tricks I mean logic like |
/ok to test |
I was very careful to make the unpacking consistent between all the uses, even where I could have taken a shortcut (
Yeah, it's a bit over the top, but there are only two, and the circumstances are special. |
Thanks, Ralf! |
|
Description
Forward compatibility changes for
cuda_core
.This helps us staying organized.