Skip to content

[SYCL][E2E] Better handle the Intel Compiler in standalone build (NFC) #18627

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

Open
wants to merge 1 commit into
base: sycl
Choose a base branch
from

Conversation

Maetveis
Copy link
Contributor

The proprietary Intel Compiler (ICX) uses a different installation layout then clang. It puts tools into a bin/compiler subdirectory (to not expose them on the PATH by default). Handle this by not assuming that the compiler is in the same directory as other llvm tools. Ask the compiler for the path to llvm-config for the tools directory, using the -print-prog-name option.
llvm-config was choosen because lit already assumes it is in the tools directory see for example: llvm/utils/lit/lit/llvm/config.py:285

The proprietary Intel Compiler (ICX) uses a different installation
layout then clang. It puts tools into a bin/compiler subdirectory
(to not expose them on the PATH by default). Handle this by not assuming
that the compiler is in the same directory as other llvm tools.
Ask the compiler for the path to "llvm-config" for the tools directory,
using the "-print-prog-name" option.
llvm-config was choosen because lit already assumes it is in the tools
directory see for example: [llvm/utils/lit/lit/llvm/config.py:285][1]

[1]: https://github.com/llvm/llvm-project/blob/9cac4bf485e64f7992f2c01bb9517f6379e58164/llvm/utils/lit/lit/llvm/config.py#L285
@Maetveis Maetveis requested a review from a team as a code owner May 22, 2025 13:52
@Maetveis Maetveis requested a review from cperkinsintel May 22, 2025 13:52
@Maetveis Maetveis temporarily deployed to WindowsCILock May 22, 2025 13:52 — with GitHub Actions Inactive
@Maetveis Maetveis temporarily deployed to WindowsCILock May 22, 2025 14:21 — with GitHub Actions Inactive
@Maetveis Maetveis temporarily deployed to WindowsCILock May 22, 2025 14:21 — with GitHub Actions Inactive
@Maetveis
Copy link
Contributor Author

CI failure is unrelated: #17650

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