From dc8c7ceaf5c01410859a0b50d44babe44afaad18 Mon Sep 17 00:00:00 2001 From: bri-prism <288398250+bri-prism@users.noreply.github.com> Date: Wed, 25 Nov 2026 15:50:32 -0800 Subject: [PATCH] vulkan: warn at configure time when glslc lacks integer dot product support Without GL_EXT_integer_dot_product the int-dot mat-vec shaders are not built and PTQ1_0 decode falls back to the dequantize path, about 10x slower, with only a STATUS line saying so. --- ggml/src/ggml-vulkan/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ggml/src/ggml-vulkan/CMakeLists.txt b/ggml/src/ggml-vulkan/CMakeLists.txt index d7dec92a63c3..c84a6ecc7ac2 100644 --- a/ggml/src/ggml-vulkan/CMakeLists.txt +++ b/ggml/src/ggml-vulkan/CMakeLists.txt @@ -100,6 +100,13 @@ if (Vulkan_FOUND) "${CMAKE_CURRENT_SOURCE_DIR}/vulkan-shaders/feature-tests/integer_dot.comp" "GGML_VULKAN_INTEGER_DOT_GLSLC_SUPPORT" ) + if (NOT GGML_VULKAN_INTEGER_DOT_GLSLC_SUPPORT) + message(WARNING "glslc (${Vulkan_GLSLC_EXECUTABLE}) does not support GL_EXT_integer_dot_product: " + "the integer dot product mat-vec shaders are not built, and PTQ1_0 and other " + "quantized mat-vecs fall back to slower dequantize paths (about 10x slower decode " + "measured for PTQ1_0). Use a newer glslc (shaderc 2024 or later) via " + "-DVulkan_GLSLC_EXECUTABLE and reconfigure from a clean build directory.") + endif() test_shader_extension_support( "GL_EXT_bfloat16"