Skip to content

[Driver] [SYCL] Fix SYCL compile time device lib link in tests.#22048

Draft
srividya-sundaram wants to merge 2 commits into
intel:syclfrom
srividya-sundaram:sycl-tt-dev-link
Draft

[Driver] [SYCL] Fix SYCL compile time device lib link in tests.#22048
srividya-sundaram wants to merge 2 commits into
intel:syclfrom
srividya-sundaram:sycl-tt-dev-link

Conversation

@srividya-sundaram
Copy link
Copy Markdown
Contributor

After PR #21672, SYCL device libraries are linked at compile time when using --offload-new-driver with SPIR/SPIRV targets. The compile RUN lines in clang-linker-wrapper.cpp that use SPIR-based targets now require the device libraries to be resolvable on disk.

In environments where the device libraries are not installed alongside the compiler (e.g. MSan self builds), these RUN lines fail with "cannot find expected SYCL device library" errors.

Fix by adding --sysroot=%S/Inputs/SYCL to the affected compile RUN lines so the stub .bc files in the test inputs directory are used for path resolution. This is sufficient since these are driver tests that check command line arguments, not actual compilation output.

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.

1 participant