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

allow clSetCommandQueueProperty to return an error for non-OpenCL 1.0 devices #980

Merged

Conversation

bashbaug
Copy link
Contributor

fixes #621

This follows the same pattern and text used by clSetProgramReleaseCallback, which may return an error for non-OpenCL 2.2 devices.

… devices

This follows the same pattern and text used by clSetProgramReleaseCallback,
which may return an error for non-OpenCL 2.2 devices.
Copy link
Contributor

@alycm alycm left a comment

Choose a reason for hiding this comment

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

Returning an error is consistent with clSetProgramReleaseCallback.

I had a look at a few implementations and they generally return an error, or have some level of implementation that can return CL_SUCCESS.

The auto-generated version note still says "clSetCommandQueueProperty is deprecated by version 1.1." but I'm not immediately sure if cl.xml or the scripts around it have a concept of removal. I'd have to look at the XML for some other specifications.

I don't think the the previous paragraph is a blocker to merging this PR.

@bashbaug
Copy link
Contributor Author

@kpet did you want to review this before merging?

Copy link
Contributor

@kpet kpet left a comment

Choose a reason for hiding this comment

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

LGTM

@bashbaug bashbaug merged commit 4efd3a9 into KhronosGroup:main Nov 29, 2023
2 checks passed
@bashbaug bashbaug deleted the update-set-command-queue-property branch November 29, 2023 18:45
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.

Status of clSetCommandQueueProperty
3 participants