]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
vulkan: fix shaders gen when no integer dot is available (llama/15740)
authorRuben Ortlam <redacted>
Tue, 2 Sep 2025 14:02:26 +0000 (16:02 +0200)
committerGeorgi Gerganov <redacted>
Fri, 5 Sep 2025 09:54:11 +0000 (12:54 +0300)
src/ggml-vulkan/vulkan-shaders/vulkan-shaders-gen.cpp

index 6c64e1b513bea40b266de49a0c94ee0fd2f2bf23..1263a70e4f757f22e8ea438dfd438635de7a3f3e 100644 (file)
@@ -854,7 +854,13 @@ void write_output_files() {
         fputs(len.c_str(), src);
     }
 
-    for (const std::string& btype : {"f16", "f32", "q8_1"}) {
+    std::vector<std::string> btypes = {"f16", "f32"};
+
+#if defined(GGML_VULKAN_INTEGER_DOT_GLSLC_SUPPORT)
+    btypes.push_back("q8_1");
+#endif
+
+    for (const std::string& btype : btypes) {
     for (const auto& tname : type_names) {
         if (btype == "q8_1" && !is_legacy_quant(tname)) {
             continue;