Skip to content

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

Merged
masahi merged 1 commit intoapache:mainfrom
csullivan:opencl_kernel_arg_fix
Jun 15, 2021
Merged

[OpenCL] Add check to only cast opaque handles to cl::BufferDescriptor at runtime#8256
masahi merged 1 commit intoapache:mainfrom
csullivan:opencl_kernel_arg_fix

Conversation

@csullivan
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

cc @masahi

Copy link
Copy Markdown
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.

2 participants