-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
cmake : use list(APPEND ...) instead of set() + dedup linker #9463
Conversation
@@ -504,7 +506,8 @@ if (GGML_HIPBLAS) | |||
message(FATAL_ERROR "Static linking not supported for HIP/ROCm") | |||
endif() | |||
|
|||
set(GGML_EXTRA_LIBS ${GGML_EXTRA_LIBS} PUBLIC hip::host roc::rocblas roc::hipblas) | |||
# TODO: this "PUBLIC" here seems wrong | |||
list(APPEND GGML_EXTRA_LIBS PUBLIC hip::host roc::rocblas roc::hipblas) |
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.
I am surprised this hack works at all. But I guess its strings internally...
But that also means that everything following will be made public.
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.
Yup me too. I don't have HIP environment setup to test and find ways to avoid it.
@ggerganov , I added SYCL fix in #9469 |
* try fix sycl build * use CMAKE_CXX_FLAGS as a string variable --------- Co-authored-by: Georgi Gerganov <[email protected]>
And this one #9471 please. |
@Xarbirus Looks like we broke the Docker CI with this change: Do you have any suggestions for a fix? Will tag also the Intel team for suggestions: @abhilash1910 @airMeng @NeoZhangJianyu @luoyu-intel |
I have only one suggestion: #9487 ( |
…ov#9463) * cmake : use list(APPEND ...) instead of set() + dedup linker ggml-ci * cmake : try fix sycl * cmake : try to fix sycl 2 * cmake : fix sycl build (ggerganov#9469) * try fix sycl build * use CMAKE_CXX_FLAGS as a string variable --------- Co-authored-by: Georgi Gerganov <[email protected]> * one more CMAKE_CXX_FLAGS fix (ggerganov#9471) --------- Co-authored-by: Michael Podvitskiy <[email protected]>
ref #9339 (comment)
list(APPEND X Y)
is considered better practice compared toset(X X Y)
.list(REMOVE_DUPLICATES ${GGML_EXTRA_LIBS})
to deduplicate flags coming from Accelerate and Metal branches (and possibly other cases too)