]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
vulkan: fix build when glslc doesn't support coopmat (llama/12683)
authorWagner Bruna <redacted>
Tue, 1 Apr 2025 09:38:07 +0000 (06:38 -0300)
committerGeorgi Gerganov <redacted>
Wed, 2 Apr 2025 12:51:57 +0000 (15:51 +0300)
ggml/src/ggml-vulkan/ggml-vulkan.cpp

index 31330e2b29bfe1e15e54d79c0eef59a4ab3b500f..ee0969fe189b4879f3a8351df44989fbde2e28f3 100644 (file)
@@ -3136,7 +3136,9 @@ static void ggml_vk_print_gpu_info(size_t idx) {
                        && shader_integer_dot_product_features.shaderIntegerDotProduct;
 
     coopmat_support = coopmat_support
+#if defined(GGML_VULKAN_COOPMAT_GLSLC_SUPPORT)
                    && coopmat_features.cooperativeMatrix
+#endif
                    && ggml_vk_khr_cooperative_matrix_support(props2.properties, driver_props, device_architecture);
 
     std::string matrix_cores = coopmat2_support ? "NV_coopmat2" : coopmat_support ? "KHR_coopmat" : "none";