Add vulkan build patch from @jmorganca
This commit is contained in:
parent
582d41e002
commit
2d443b3dd6
|
|
@ -110,3 +110,16 @@ if(CMAKE_HIP_COMPILER)
|
|||
endforeach()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
find_package(Vulkan)
|
||||
if(Vulkan_FOUND)
|
||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/ml/backend/ggml/ggml/src/ggml-vulkan)
|
||||
set(OLLAMA_VULKAN_INSTALL_DIR ${OLLAMA_INSTALL_DIR}/vulkan)
|
||||
install(TARGETS ggml-vulkan
|
||||
RUNTIME_DEPENDENCIES
|
||||
PRE_INCLUDE_REGEXES vulkan
|
||||
PRE_EXCLUDE_REGEXES ".*"
|
||||
RUNTIME DESTINATION ${OLLAMA_VULKAN_INSTALL_DIR} COMPONENT Vulkan
|
||||
LIBRARY DESTINATION ${OLLAMA_VULKAN_INSTALL_DIR} COMPONENT Vulkan
|
||||
)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -12,6 +12,8 @@ include src/ggml-cuda/
|
|||
include src/ggml-cuda/template-instances/
|
||||
include src/ggml-hip/
|
||||
include src/ggml-metal/
|
||||
include src/ggml-vulkan/
|
||||
include src/ggml-vulkan/vulkan-shaders
|
||||
include *.c
|
||||
include *.h
|
||||
include *.cpp
|
||||
|
|
@ -19,4 +21,5 @@ include *.cu
|
|||
include *.cuh
|
||||
include *.m
|
||||
include *.metal
|
||||
include *.comp
|
||||
exclude *
|
||||
|
|
|
|||
Loading…
Reference in New Issue