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

Return device architecture in info::device::version #1084

Merged
merged 1 commit into from
Jul 17, 2023

Conversation

al42and
Copy link
Contributor

@al42and al42and commented Jul 14, 2023

Per spec, sycl::device::get_info<sycl::info::device::version> "Returns a backend-defined device version."

Currently, it returns "1.2 {info::platform::version}", which is redundant and (IMO) not particularly useful. Returning device architecture version seems spec-compliant and could have some uses.

@illuhad
Copy link
Collaborator

illuhad commented Jul 17, 2023

Good idea! Yeah, the current return value comes from SYCL 1.2.1 days, where "1.2 " was referring to OpenCL profiles.

@illuhad illuhad merged commit 59a387a into AdaptiveCpp:develop Jul 17, 2023
17 checks passed
@al42and al42and deleted the aa-device-version-arch branch July 17, 2023 14:13
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