Skip to content

Conversation

@YixingZhang007
Copy link
Contributor

@YixingZhang007 YixingZhang007 commented Nov 20, 2025

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-driver flag is added to the test command in Compression/compression_separate_compile.cpp. This ensures the test uses the old offloading model where clang-offload-wrapper (which the test validates) is actually invoked.
(2) Created a new test file NewOffloadDriver/image_compression.cpp to verify image compression functionality works correctly with the new offloading driver.

With this patch, the Compression/compression_separate_compile.cpp SYCL E2E test will pass with the new offloading model.

@YixingZhang007 YixingZhang007 force-pushed the solve_compression_seperate_compile_test_failure branch from 989b8e5 to e9d3cca Compare November 24, 2025 15:43
@YixingZhang007 YixingZhang007 changed the title [NewOffloadModel] Enable image compression test for new offload model [NewOffloadDriver] Fix SYCL E2E image compression test for new offload model Nov 24, 2025
@YixingZhang007
Copy link
Contributor Author

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.

@YixingZhang007
Copy link
Contributor Author

YixingZhang007 commented Nov 24, 2025

Both the tests Compression/compression_separate_compile.cpp and NewOffloadDriver/image_compression.cpp passed when new offloading model enabled as default together with my changes (the CI before removing new offloading changes from this PR can be found at https://github.com/intel/llvm/actions/runs/19647073889/job/56266975114?pr=20717)

This comment was marked as resolved.

@YixingZhang007
Copy link
Contributor Author

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
Copy link
Contributor Author

@YixingZhang007 YixingZhang007 Nov 25, 2025

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.

Copy link
Contributor

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

Copy link
Contributor Author

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 :)

Copy link
Contributor

@YuriPlyakhin YuriPlyakhin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@YixingZhang007
Copy link
Contributor Author

@intel/llvm-reviewers-runtime Could you please help review this PR? Thank you :)

Copy link
Contributor

@uditagarwal97 uditagarwal97 left a 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.

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.

4 participants