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

[CTS] Don't use urProgramCreateWithIL on HIP adapter #1184

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

kbenzie
Copy link
Contributor

@kbenzie kbenzie commented Dec 13, 2023

Since 5dc6e46 CTS tests which execute kernels have been failing to create programs. This has been hidden due to the match files containing expected failures in combination with an bug in the match file script found while debugging #1029 check failures.

This patch adds uur::KernelsEnvironment::CreateProgram() which automatically handles the differences between the HIP adapter and others. On the hip path urProgramCreateWithIL is not longer called because it is not supported by the adatper and urProgramCreateWithBinary is used instead. The non-HIP path continues to use urProgramCreateWithIL.

Since 5dc6e46 CTS tests which execute
kernels have been failing to create programs. This has been hidden due
to the match files containing expected failures in combination with an
bug in the match file script found while debugging oneapi-src#1029 check failures.

This patch adds `uur::KernelsEnvironment::CreateProgram()` which
automatically handles the differences between the HIP adapter and
others. On the hip path `urProgramCreateWithIL` is not longer called
because it is not supported by the adatper and
`urProgramCreateWithBinary` is used instead. The non-HIP path continues
to use `urProgramCreateWithIL`.
@kbenzie kbenzie requested a review from a team as a code owner December 13, 2023 14:57
@codecov-commenter
Copy link

Codecov Report

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

Comparison is base (95f9092) 15.73% compared to head (bce0f24) 15.72%.

Files Patch % Lines
test/conformance/source/environment.cpp 0.00% 11 Missing ⚠️
test/conformance/testing/include/uur/fixtures.h 0.00% 5 Missing ⚠️
test/conformance/program/urProgramCreateWithIL.cpp 0.00% 4 Missing ⚠️
test/conformance/program/urProgramLink.cpp 0.00% 4 Missing ⚠️

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1184      +/-   ##
==========================================
- Coverage   15.73%   15.72%   -0.02%     
==========================================
  Files         223      223              
  Lines       31466    31484      +18     
  Branches     3556     3562       +6     
==========================================
- Hits         4952     4951       -1     
- Misses      26463    26482      +19     
  Partials       51       51              

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

@kbenzie kbenzie added ready to merge Added to PR's which are ready to merge conformance Conformance test suite issues. labels Jan 23, 2024
@kbenzie kbenzie merged commit 8da09d4 into oneapi-src:main Jan 24, 2024
51 checks passed
@kbenzie kbenzie deleted the benie/cts-hip-no-il-programs 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
conformance Conformance test suite issues. 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.

4 participants