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

dag_node: Only use backend wait() functionality if we are not yet complete #742

Merged
merged 1 commit into from
May 27, 2022

Conversation

illuhad
Copy link
Collaborator

@illuhad illuhad commented May 23, 2022

If we have already cached that the node has completed, there is no need to invoked backend wait() functionality. This can maybe improve performance of multiple wait() calls to the same object.
More importantly, it works around #740 by avoid calls to backend functionality in the buffer destructor, if the event has already been waited for before.

#740 is probably part of larger issues around shutdown behavior, but this is at least a work around. Hopefully fixes #740.

@illuhad illuhad merged commit 8cb33f5 into develop May 27, 2022
@illuhad illuhad deleted the hotfix/node-wait-behavior branch May 27, 2022 00:04
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.

CUDA error 4 on buffer deallocation
1 participant