-
Notifications
You must be signed in to change notification settings - Fork 11.4k
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
sycl: allow ggml-sycl configuration and compilation using Visual Studio project/solution #12625
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The user can decide which compiler wants to use for the rest of llama.cpp, while ggml-sycl will always be compiled using the Intel official compiler.
This will only work when building ggml and its backend as shared libraries, i.e -DBUILD_SHARED_LIBS=ON
.
For building as a single program/static library, -fsycl need to be added to C++ flags and the entire project should be built with the Intel SYCL compiler(icpx/icx).
Thank you for your feedback @qnixsynapse, I changed the documentation in 85e917d |
Co-authored-by: Svetlozar Georgiev <[email protected]>
Co-authored-by: Svetlozar Georgiev <[email protected]>
Merged 3rd and 4th point under only one point related to Visual Studio. Specify better how to build and use Visual Studio solution. Add note about tested configuration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's good job!
In the beginning, I don't want to spend more time on building by VS.
So, I choose build directly by cmd line.
I think many windows developers will enjoy this update.
Removing me from the review as you've already had plenty of feedback. Good Job! |
This PR enable the possibility of compiling and using llama.cpp with ggml-sycl backend as Visual Studio Project/Solution on windows.
The changes don't interfere with anything but the solution generation for ggml-sycl.
The user can decide which compiler wants to use for the rest of llama.cpp, while
ggml-sycl
will always be compiled using the Intel official compiler.Tested current and new configurations on Windows 10 and Intel Arc B580