-
Notifications
You must be signed in to change notification settings - Fork 13.8k
vulkan : cmake integration #8119
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
Changes from 20 commits
4eadfb1
c46a789
36b081a
29ba5a8
1b4759f
cb3ec88
37bcad7
b1a70fc
dd198ce
491a967
99c3027
8859546
c61cd05
2318cad
a1495e7
6571046
d053004
d0d825f
eec17a6
8590508
ac9a065
4eab311
9bca872
422bfb3
22323d5
2f5a0e8
a85b5d8
019e4a3
3a554ae
dafcaf1
4226103
613a3c6
f638ade
02e65ad
6b5c5af
50da329
f47829a
9501f66
88fd99b
24fd7d3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -123,7 +123,16 @@ set(LLAMA_INCLUDE_INSTALL_DIR ${CMAKE_INSTALL_INCLUDEDIR} CACHE PATH "Location o | |
| set(LLAMA_LIB_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR} CACHE PATH "Location of library files") | ||
| set(LLAMA_BIN_INSTALL_DIR ${CMAKE_INSTALL_BINDIR} CACHE PATH "Location of binary files") | ||
|
|
||
| get_directory_property(LLAMA_TRANSIENT_DEFINES COMPILE_DEFINITIONS) | ||
|
|
||
| # At the moment some compile definitions are placed within the ggml/src | ||
| # directory but not exported on the `ggml` target. This could be improved by | ||
| # determining _precisely_ which defines are necessary for the llama-config | ||
| # package. | ||
| # | ||
| get_directory_property(GGML_DIR_DEFINES DIRECTORY ggml/src COMPILE_DEFINITIONS) | ||
| get_target_property(GGML_TARGET_DEFINES ggml COMPILE_DEFINITIONS) | ||
| set(GGML_TRANSIENT_DEFINES ${GGML_TARGET_DEFINES} ${GGML_DIR_DEFINES}) | ||
| get_target_property(GGML_LINK_LIBRARIES ggml LINK_LIBRARIES) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't understand why this is needed - an example with a specific flag that is not exported would help. It's OK to merge as it is though
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ggerganov I will take a closer look at this. The flags which should be exported should be all interface defines (public interface only) on the ggml/llama libraries. I will follow up with a new pull request. |
||
|
|
||
| set_target_properties(llama PROPERTIES PUBLIC_HEADER ${CMAKE_CURRENT_SOURCE_DIR}/include/llama.h) | ||
| install(TARGETS llama LIBRARY PUBLIC_HEADER) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.