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

[OpenCL] Add check to only cast opaque handles to cl::BufferDescriptor at runtime #8256

Merged
merged 1 commit into from
Jun 15, 2021
Merged

[OpenCL] Add check to only cast opaque handles to cl::BufferDescriptor at runtime #8256

merged 1 commit into from
Jun 15, 2021

Conversation

csullivan
Copy link
Contributor

Previous casting of void_args was too aggressive and attempted to cast non backend allocated handles, such as kernel scalar arguments, to cl::BufferDescriptors.

@csullivan
Copy link
Contributor Author

cc @masahi

Copy link
Member

@masahi masahi left a comment

Choose a reason for hiding this comment

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

I confirmed that this fixes the segfault on my object detection model, thanks for the quick fix @csullivan

@masahi masahi merged commit 75d9b78 into apache:main Jun 15, 2021
trevor-m pushed a commit to trevor-m/tvm that referenced this pull request Jun 17, 2021
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Jun 17, 2021
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

2 participants