-
Notifications
You must be signed in to change notification settings - Fork 798
[NewOffloadDriver] Fix SYCL E2E image compression test for new offload model #20717
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
base: sycl
Are you sure you want to change the base?
[NewOffloadDriver] Fix SYCL E2E image compression test for new offload model #20717
Conversation
3fa7d78 to
989b8e5
Compare
989b8e5 to
e9d3cca
Compare
|
The changes for enabling the new offloading model will be removed from this PR after the CI tests have finished verifying that the image compression SYCL E2E tests pass with the new offloading model. |
aa7685a to
c8d4f76
Compare
d20abf6 to
8175ae1
Compare
|
Both the tests |
|
I don't think the current CI failure is related to the changes made in this PR. |
|
|
||
| // REQUIRES: zstd, opencl-aot, cpu, linux | ||
|
|
||
| // XFAIL: run-mode && preview-mode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Surprisingly, this test fails for the preview-mode for old offloading model; however, for the new offloading model, it passes. Therefore // XFAIL: run-mode && preview-mode is not added in NewOffloadDriver/image_compression.cpp.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue with the preview-mode failing is being addressed here: #20708
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing this out! In this case, I think this behavior is expected, and the test will also pass with preview-mode for old offloading model after #20708 is merged :)
YuriPlyakhin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@intel/llvm-reviewers-runtime Could you please help review this PR? Thank you :) |
uditagarwal97
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for fixing this test.
This patch addresses test failures in SYCL E2E image compression by testing this feature for two offloading models in separate tests:
(1) The
--no-offload-new-driverflag is added to the test command inCompression/compression_separate_compile.cpp. This ensures the test uses the old offloading model whereclang-offload-wrapper(which the test validates) is actually invoked.(2) Created a new test file
NewOffloadDriver/image_compression.cppto verify image compression functionality works correctly with the new offloading driver.With this patch, the
Compression/compression_separate_compile.cppSYCL E2E test will pass with the new offloading model.