Skip to content

Conversation

@uditagarwal97
Copy link
Contributor

@uditagarwal97 uditagarwal97 commented Oct 26, 2024

Fixes: #15829

Problem
--offload-compress is being used by HIP in clang-offload-bundler and by us in clang-offload-wrapper. When we use --offload-compress for SYCL offloading to HIP, the device images gets compressed twice: once in offload-bundler and then in offload-wrapper.

Solution Workaround
This PR intends to disable compression in clang-offload-bundler when offloading to HIP.

// that's why appending '|| true'. This error should not affect the driver invocation, which this test intends to verify.

// RUN: not %clangxx -### -fsycl --offload-compress -Xsycl-target-backend=amdgcn-amd-amdhsa --offload-arch=gfx1031 -fsycl-targets=amdgcn-amd-amdhsa %s > %t.driver 2>&1
// RUN: (%clangxx -### -fsycl --offload-compress -Xsycl-target-backend=amdgcn-amd-amdhsa --offload-arch=gfx1031 -fsycl-targets=amdgcn-amd-amdhsa %s > %t.driver 2>&1) || true
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of using || true here, add the -fno-sycl-libspirv -nogpulib options to the command line to limit library requirements.

@uditagarwal97
Copy link
Contributor Author

@intel/llvm-gatekeepers the PR is ready to be merged.

@steffenlarsen steffenlarsen merged commit eab2dfc into sycl Oct 29, 2024
22 checks passed
@bader bader deleted the sycl-devops-pr/udit/hip_offload branch October 30, 2024 00:20
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.

[SYCL] Compression/* E2E tests failing on HIP

6 participants