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

[Debug][Disco] Check if a PackedFunc exists before calling it #16845

Merged

Conversation

Lunderberg
Copy link
Contributor

Prior to this commit, attempting to execute the result of sess.get_global_func for a non-existing function name would result in a segfault. While the equivalent tvm.get_global_func can throw an exception when looking up the function, Disco returns a DFunction immediately. This DFunction may resolve to a null pointer, and should be checked in the worker process before calling it.

Prior to this commit, attempting to execute the result of
`sess.get_global_func` for a non-existing function name would result
in a segfault.  While the equivalent `tvm.get_global_func` can throw
an exception when looking up the function, Disco returns a `DFunction`
immediately.  This `DFunction` may resolve to a null pointer, and
should be checked in the worker process before calling it.
@tqchen tqchen merged commit 53f05d8 into apache:main Apr 4, 2024
19 checks passed
@Lunderberg Lunderberg deleted the disco_check_before_calling_null_packed_func branch April 4, 2024 21:37
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.

3 participants