Skip to content

[SYCL][CMake] Build sycl-toolchain by default #13550

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

Merged
merged 1 commit into from
Apr 25, 2024
Merged

[SYCL][CMake] Build sycl-toolchain by default #13550

merged 1 commit into from
Apr 25, 2024

Conversation

jsji
Copy link
Contributor

@jsji jsji commented Apr 24, 2024

In compile.py we are using -t sycl-toolchain to build the sycl
toolchain. However, sycl-toolchain is not added by default target.
So when I configure the project , then build the default target,
eg: ninja
some of the libs eg: libdevice will not be built even if they are in the
"LLVM_ENABLE_PROJECTS" list.

eg: One of the typical failures are missing sycl-devicelib-host.

/iusers/jinsongj/llvm/build/bin/clang++   -fsycl -fsycl-targets=spir64 /iusers/jinsongj/llvm/sycl/test-e2e/Matrix/XMX8/element_wise_abc.cpp

$ /iusers/jinsongj/llvm/build/bin/clang++   -fsycl -fsycl-targets=spir64 /iusers/jinsongj/llvm/sycl/test-e2e/Matrix/XMX8/element_wise_abc.cpp
/usr/bin/ld: cannot find -lsycl-devicelib-host: No such file or directory
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

So I have to run ninja sycl-toolchain again to build sycl toolchain.

Since sycl branch is for sycl-toolchain, I think we should enable
building sycl-toolchain by default.

@jsji jsji requested a review from a team as a code owner April 24, 2024 20:26
@jsji jsji requested a review from maarquitos14 April 24, 2024 20:26
@jsji jsji self-assigned this Apr 24, 2024
@jsji jsji temporarily deployed to WindowsCILock April 24, 2024 20:50 — with GitHub Actions Inactive
In compile.py we are using -t sycl-toolchain to build the sycl
toolchain. However, sycl-toolchain is not added by default target.
So when I configure the project , then build the default target,
eg: `ninja`
some of the libs eg: libdevice will not be built even if they are in the
"LLVM_ENABLE_PROJECTS" list.

eg: One of the typical failures are missing sycl-devicelib-host.

```
/iusers/jinsongj/llvm/build/bin/clang++   -fsycl -fsycl-targets=spir64
/iusers/jinsongj/llvm/sycl/test-e2e/Matrix/XMX8/element_wise_abc.cpp

$ /iusers/jinsongj/llvm/build/bin/clang++   -fsycl -fsycl-targets=spir64
/iusers/jinsongj/llvm/sycl/test-e2e/Matrix/XMX8/element_wise_abc.cpp
/usr/bin/ld: cannot find -lsycl-devicelib-host: No such file or
directory
clang++: error: linker command failed with exit code 1 (use -v to see
invocation)
```
So I have to run `ninja sycl-toolchain` again to build sycl toolchain.

Since sycl branch is for sycl-toolchain, I think we should enable
building sycl-toolchain by default.
@jsji jsji temporarily deployed to WindowsCILock April 25, 2024 13:13 — with GitHub Actions Inactive
@jsji jsji temporarily deployed to WindowsCILock April 25, 2024 13:52 — with GitHub Actions Inactive
@jsji
Copy link
Contributor Author

jsji commented Apr 25, 2024

@intel/llvm-gatekeepers This is ready for merge. Thanks.

@asudarsa asudarsa merged commit d1441e8 into sycl Apr 25, 2024
@bader bader deleted the device-hostfix branch May 14, 2024 16:00
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.

3 participants