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] Use urDeviceGetSelected #1389

Merged
merged 3 commits into from
Mar 12, 2024
Merged

Conversation

kbenzie
Copy link
Contributor

@kbenzie kbenzie commented Feb 27, 2024

Now that #740 is merged, actually use urDeviceGetSelected in the urinfo tool to mirror the behaviour of the sycl-ls tool.

Now that oneapi-src#740 is merged, actually use `urDeviceGetSelected` in the
`urinfo` tool to mirror the behaviour of the `sycl-ls` tool.
@kbenzie kbenzie requested a review from a team as a code owner February 27, 2024 15:13
After allowing urDeviceGetSelected to return zero devices rather than
returning an error, a number of unit tests started failing. This patch
fixes these tests by returning the expected error code during parsing,
rather than after processing all ODS terms. This has the caveat of not
processing all ODS terms before reporting an error and should be
revisited once more robust testing is in place.
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 36 lines in your changes are missing coverage. Please review.

Project coverage is 12.51%. Comparing base (78ef1ca) to head (d2a2fe0).
Report is 83 commits behind head on main.

❗ Current head d2a2fe0 differs from pull request most recent head 5fe75aa. Consider uploading reports for the commit 5fe75aa to get more accurate results

Files Patch % Lines
tools/urinfo/urinfo.cpp 0.00% 25 Missing ⚠️
source/loader/ur_lib.cpp 0.00% 11 Missing ⚠️

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1389      +/-   ##
==========================================
- Coverage   14.82%   12.51%   -2.32%     
==========================================
  Files         250      239      -11     
  Lines       36220    35952     -268     
  Branches     4094     4081      -13     
==========================================
- Hits         5369     4498     -871     
- Misses      30800    31450     +650     
+ Partials       51        4      -47     

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

@kbenzie kbenzie merged commit 654e556 into oneapi-src:main Mar 12, 2024
52 checks passed
@kbenzie kbenzie deleted the benie/urinfo-ods branch June 11, 2024 15:51
@kbenzie kbenzie restored the benie/urinfo-ods branch June 11, 2024 15:51
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.

3 participants