-
Notifications
You must be signed in to change notification settings - Fork 11.8k
Compile bug: SYCL backend build fail on debug config #12602
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
Comments
Hello @senhui2intel, this is something I have encountered as well in the past. Unfortunately I do not have a "good" fix, but I wanted to provide you with a workaround which I hope might unblock you. The reason for the failure is there are some assertions inside sycl kernels which cause this failure, since assertions are only enabled in debug, the error is not reproducible in Release. The workaround I have is to disable assertions so you can change your CmakeCache cxx flags to Again, this is definitely not a good fix but it should be enough to unblock you. |
@senhui2intel If you want to debug the code flow, use gdb after source oneAPI. |
Thanks, I tried the second approach as below cmake cmd and it works: Although it's not a "good" fix, it does make help to debug llama.cpp host code with sycl backend. |
Follow cmd is work:
Please refer to |
gdb could not found debug symlbols with --config Debug. |
I'm happy the workaround helped, please share if you find a better solution for this problem. If/When I get a chance to look into it more I will update. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
Git commit
f17a3bb
Operating systems
Linux
GGML backends
SYCL
Problem description & steps to reproduce
SYCL backend build fail on debug config with error: SYCL kernel cannot call an undefined function without SYCL_EXTERNAL attribute
Release config works without error:
First Bad Commit
No response
Compile command
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DGGML_SYCL=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx cmake --build build
Relevant log output
The text was updated successfully, but these errors were encountered: