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

Fix handling of "invalid property" when creating OpenCL command queue #1565

Merged

Conversation

mthuurne
Copy link
Contributor

The clCreateCommandQueue() function will return the error code CL_INVALID_QUEUE_PROPERTIES when passed unsupported properties, not CL_INVALID_PROPERTY as the original code was checking for.

Relevant API docs.

With this change, I can run the CLBlast support with the Rusticl driver of Mesa 23.1.0 on Linux.

The `clCreateCommandQueue()` function will return the code
`CL_INVALID_QUEUE_PROPERTIES` when passed unsupported properties,
not `CL_INVALID_PROPERTY` as the original code was checking for.
@SlyEcho
Copy link
Collaborator

SlyEcho commented May 23, 2023

That was my bad, I didn't check the docs well enough.

@SlyEcho SlyEcho merged commit 7d87381 into ggml-org:master May 23, 2023
@mthuurne mthuurne deleted the opencl-command-queue-invalid-property branch May 23, 2023 19:24
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