mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-04-29 23:40:08 +00:00
vulkan: Fix missing cmake logic for dot product extension (llama/12721)
This commit is contained in:
parent
ccc7b5df0b
commit
e944065d5b
@ -64,8 +64,10 @@ if (Vulkan_FOUND)
|
|||||||
|
|
||||||
if (${glslc_error} MATCHES ".*extension not supported: GL_EXT_integer_dot_product.*")
|
if (${glslc_error} MATCHES ".*extension not supported: GL_EXT_integer_dot_product.*")
|
||||||
message(STATUS "GL_EXT_integer_dot_product not supported by glslc")
|
message(STATUS "GL_EXT_integer_dot_product not supported by glslc")
|
||||||
|
set(GGML_VULKAN_INTEGER_DOT_GLSLC_SUPPORT OFF)
|
||||||
else()
|
else()
|
||||||
message(STATUS "GL_EXT_integer_dot_product supported by glslc")
|
message(STATUS "GL_EXT_integer_dot_product supported by glslc")
|
||||||
|
set(GGML_VULKAN_INTEGER_DOT_GLSLC_SUPPORT ON)
|
||||||
add_compile_definitions(GGML_VULKAN_INTEGER_DOT_GLSLC_SUPPORT)
|
add_compile_definitions(GGML_VULKAN_INTEGER_DOT_GLSLC_SUPPORT)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@ -139,6 +141,7 @@ if (Vulkan_FOUND)
|
|||||||
-DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}
|
-DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}
|
||||||
-DGGML_VULKAN_COOPMAT_GLSLC_SUPPORT=${GGML_VULKAN_COOPMAT_GLSLC_SUPPORT}
|
-DGGML_VULKAN_COOPMAT_GLSLC_SUPPORT=${GGML_VULKAN_COOPMAT_GLSLC_SUPPORT}
|
||||||
-DGGML_VULKAN_COOPMAT2_GLSLC_SUPPORT=${GGML_VULKAN_COOPMAT2_GLSLC_SUPPORT}
|
-DGGML_VULKAN_COOPMAT2_GLSLC_SUPPORT=${GGML_VULKAN_COOPMAT2_GLSLC_SUPPORT}
|
||||||
|
-DGGML_VULKAN_INTEGER_DOT_GLSLC_SUPPORT=${GGML_VULKAN_INTEGER_DOT_GLSLC_SUPPORT}
|
||||||
BUILD_COMMAND ${CMAKE_COMMAND} --build .
|
BUILD_COMMAND ${CMAKE_COMMAND} --build .
|
||||||
INSTALL_COMMAND ${CMAKE_COMMAND} --install .
|
INSTALL_COMMAND ${CMAKE_COMMAND} --install .
|
||||||
INSTALL_DIR ${CMAKE_BINARY_DIR}
|
INSTALL_DIR ${CMAKE_BINARY_DIR}
|
||||||
|
@ -6,6 +6,9 @@ endif()
|
|||||||
if (GGML_VULKAN_COOPMAT2_GLSLC_SUPPORT)
|
if (GGML_VULKAN_COOPMAT2_GLSLC_SUPPORT)
|
||||||
add_compile_definitions(GGML_VULKAN_COOPMAT2_GLSLC_SUPPORT)
|
add_compile_definitions(GGML_VULKAN_COOPMAT2_GLSLC_SUPPORT)
|
||||||
endif()
|
endif()
|
||||||
|
if (GGML_VULKAN_INTEGER_DOT_GLSLC_SUPPORT)
|
||||||
|
add_compile_definitions(GGML_VULKAN_INTEGER_DOT_GLSLC_SUPPORT)
|
||||||
|
endif()
|
||||||
set(TARGET vulkan-shaders-gen)
|
set(TARGET vulkan-shaders-gen)
|
||||||
add_executable(${TARGET} vulkan-shaders-gen.cpp)
|
add_executable(${TARGET} vulkan-shaders-gen.cpp)
|
||||||
install(TARGETS ${TARGET} RUNTIME)
|
install(TARGETS ${TARGET} RUNTIME)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user