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

add a few missing Intel GPU device queries, fix device ID query #2437

Merged
merged 3 commits into from
Dec 13, 2024

Conversation

bashbaug
Copy link
Contributor

@bashbaug bashbaug commented Dec 8, 2024

Adds a few missing Intel GPU device queries, from the cl_intel_device_attribute_query extension:

https://registry.khronos.org/OpenCL/extensions/intel/cl_intel_device_attribute_query.html

Also, adds the PCI address query, using cl_khr_pci_bus_info:

https://registry.khronos.org/OpenCL/specs/3.0-unified/html/OpenCL_API.html#cl_khr_pci_bus_info

Also, fixes the query for UR_DEVICE_INFO_DEVICE_ID. This query should return the PCI device ID, not the PCI device number from the PCI bus info query. For now, the query uses the device ID query from cl_intel_device_attribute_query, though this could be expanded to support similar queries from other vendors as well.

also, fix the device ID query
@bashbaug bashbaug requested a review from a team as a code owner December 8, 2024 00:59
@aarongreig aarongreig added the ready to merge Added to PR's which are ready to merge label Dec 13, 2024
@martygrant martygrant merged commit 4739d4c into oneapi-src:main Dec 13, 2024
72 of 73 checks passed
martygrant added a commit to bashbaug/llvm that referenced this pull request Dec 13, 2024
martygrant added a commit to intel/llvm that referenced this pull request Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Added to PR's which are ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants