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

[urinfo] Fix printing of device UUID #1243

Merged

Conversation

kbenzie
Copy link
Contributor

@kbenzie kbenzie commented Jan 11, 2024

  • Change the type returned by the UR_DEVICE_INFO_UUID query to uint8_t to match the type returned from Level Zero, CUDA, & HIP.
  • Modify template to emit call to printDeviceUUID() instead of generic info printer to special case output formatting.
  • Add printDeviceUUID() to print the device UUID in a human friendly format.

@kbenzie kbenzie force-pushed the benie/fix-urinfo-device-uuid-printing branch from 744f2cf to dc97b7b Compare January 23, 2024 15:52
@kbenzie kbenzie requested a review from a team as a code owner January 23, 2024 15:52
@kbenzie kbenzie force-pushed the benie/fix-urinfo-device-uuid-printing branch from dc97b7b to b8c4e60 Compare January 23, 2024 15:58
@codecov-commenter
Copy link

codecov-commenter commented Jan 23, 2024

Codecov Report

Attention: 18 lines in your changes are missing coverage. Please review.

Comparison is base (9363574) 15.39% compared to head (f2c8da7) 15.38%.
Report is 2 commits behind head on main.

Files Patch % Lines
tools/urinfo/utils.hpp 0.00% 9 Missing ⚠️
include/ur_print.hpp 0.00% 8 Missing ⚠️
tools/urinfo/urinfo.hpp 0.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1243      +/-   ##
==========================================
- Coverage   15.39%   15.38%   -0.01%     
==========================================
  Files         240      240              
  Lines       34101    34116      +15     
  Branches     3776     3780       +4     
==========================================
- Hits         5251     5250       -1     
- Misses      28799    28815      +16     
  Partials       51       51              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kbenzie kbenzie force-pushed the benie/fix-urinfo-device-uuid-printing branch from b8c4e60 to f2c8da7 Compare February 1, 2024 14:05
@kbenzie kbenzie added the ready to merge Added to PR's which are ready to merge label Feb 1, 2024
@kbenzie kbenzie force-pushed the benie/fix-urinfo-device-uuid-printing branch from f2c8da7 to bba3971 Compare February 29, 2024 13:52
@kbenzie kbenzie force-pushed the benie/fix-urinfo-device-uuid-printing branch from bba3971 to a13a455 Compare February 29, 2024 14:44
kbenzie added a commit to kbenzie/llvm that referenced this pull request Mar 4, 2024
@kbenzie kbenzie force-pushed the benie/fix-urinfo-device-uuid-printing branch from a13a455 to 0e2b601 Compare March 13, 2024 13:33
@kbenzie kbenzie added specification Changes or additions to the specification opencl OpenCL adapter specific issues labels Apr 3, 2024
@kbenzie kbenzie force-pushed the benie/fix-urinfo-device-uuid-printing branch from 0e2b601 to dc2bf5f Compare April 3, 2024 14:07
* Change the type returned by the `UR_DEVICE_INFO_UUID` query to
  `uint8_t` to match the type returned from Level Zero, CUDA, & HIP.
* Modify template to emit call to `printDeviceUUID()` instead of generic
  info printer to special case output formatting.
* Add `printDeviceUUID()` to print the device UUID in a human friendly
  format.
Check if the OpenCL device supports the `cl_khr_device_uuid` extension. If
it is supported, use it to implement the `UR_DEVICE_INFO_UUID` query.
Otherwise, continue to return `UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION`.
@kbenzie kbenzie force-pushed the benie/fix-urinfo-device-uuid-printing branch from dc2bf5f to 6a60213 Compare April 22, 2024 11:33
@kbenzie kbenzie merged commit 31d0fe1 into oneapi-src:main Apr 22, 2024
51 checks passed
@kbenzie kbenzie deleted the benie/fix-urinfo-device-uuid-printing branch June 11, 2024 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
opencl OpenCL adapter specific issues ready to merge Added to PR's which are ready to merge specification Changes or additions to the specification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants