-
Notifications
You must be signed in to change notification settings - Fork 78
Update device and platform version descriptions #231
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
663c3e4
Update device and platform version descriptions
npmiller 2ecbb67
Deprecate device version and don't report spec revision
npmiller c499eee
Clarify information descriptor mapping for OpenCL backend
npmiller 2806ab0
Revert "Deprecate device version and don't report spec revision"
npmiller aa1a98a
Define device version as backend defined
npmiller 694a51a
Leave the driver version up to vendors
npmiller File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see that the OpenCL backend interop spec says this corresponds to
CL_DRIVER_VERSION. OpenCL 3.0 defines that as:Since OpenCL doesn't mandate any specific format, should we just say this in the SYCL spec directly? The SYCL definition would then be something like:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh it got updated in 3.0! That's a better definition for sure.
I feel like this a bit in conflict with the idea of having it backend-defined, the way I see it we say it's backend-defined in the main spec, then in the backend spec we can define it further to vendor-defined if we want, for the OpenCL plugin saying it's
CL_DRIVER_VERSIONdefers it to the OpenCL spec which ends up being vendor defined anyway.But then for say a CUDA backend we could define it to the compute capability in the format
major.minorfor example rather than having it vendor defined.But if we just say it's vendor defined in the main spec I feel like we can't really give more details on what it's supposed to be in the backend spec.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the motivation for specifying this query as backend-defined, though? Most of our queries are not backend-defined. If the intent of
driver_versionis to return the version string of the vendor's device driver, it's hard to see why a backend would mandate any specific format. Wouldn't we want each vendor to have the freedom to decide it's own format?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh right! I was still thinking about the
versionrather than thedriver_version, since thedriver_versionwas already backend specific before my patch.But now that I think about it, I do think you're right that it makes more sense to have the
driver_versionsimply be vendor specific, I'll change it as well.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the
driver_versionas suggested and removed theCL_DRIVER_VERSIONpart from the OpenCL backend spec.