Skip to content

Commit f4d8c68

Browse files
committed
vulkan: fix incomplete shader support detection
1 parent 06d4f77 commit f4d8c68

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

ggml/src/ggml-vulkan/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ if (Vulkan_FOUND)
181181
-DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}
182182
-DGGML_VULKAN_COOPMAT_GLSLC_SUPPORT=${GGML_VULKAN_COOPMAT_GLSLC_SUPPORT}
183183
-DGGML_VULKAN_COOPMAT2_GLSLC_SUPPORT=${GGML_VULKAN_COOPMAT2_GLSLC_SUPPORT}
184+
-DGGML_VULKAN_INTEGER_DOT_GLSLC_SUPPORT=${GGML_VULKAN_INTEGER_DOT_GLSLC_SUPPORT}
185+
-DGGML_VULKAN_BFLOAT16_GLSLC_SUPPORT=${GGML_VULKAN_BFLOAT16_GLSLC_SUPPORT}
184186
BUILD_COMMAND ${CMAKE_COMMAND} --build .
185187
INSTALL_COMMAND ${CMAKE_COMMAND} --install .
186188
INSTALL_DIR ${CMAKE_BINARY_DIR}

ggml/src/ggml-vulkan/vulkan-shaders/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ endif()
66
if (GGML_VULKAN_COOPMAT2_GLSLC_SUPPORT)
77
add_compile_definitions(GGML_VULKAN_COOPMAT2_GLSLC_SUPPORT)
88
endif()
9+
if (GGML_VULKAN_INTEGER_DOT_GLSLC_SUPPORT)
10+
add_compile_definitions(GGML_VULKAN_INTEGER_DOT_GLSLC_SUPPORT)
11+
endif()
12+
if (GGML_VULKAN_BFLOAT16_GLSLC_SUPPORT)
13+
add_compile_definitions(GGML_VULKAN_BFLOAT16_GLSLC_SUPPORT)
14+
endif()
915
set(TARGET vulkan-shaders-gen)
1016
add_executable(${TARGET} vulkan-shaders-gen.cpp)
1117
install(TARGETS ${TARGET} RUNTIME)

0 commit comments

Comments
 (0)