From 22bbde1ff49c2bf4c8bd8d4f6eb100026c772438 Mon Sep 17 00:00:00 2001 From: Wagner Bruna Date: Mon, 31 Mar 2025 22:07:39 -0300 Subject: [PATCH] vulkan: fix build when glslc doesn't support coopmat --- ggml/src/ggml-vulkan/ggml-vulkan.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ggml/src/ggml-vulkan/ggml-vulkan.cpp b/ggml/src/ggml-vulkan/ggml-vulkan.cpp index 31330e2b29bfe..ee0969fe189b4 100644 --- a/ggml/src/ggml-vulkan/ggml-vulkan.cpp +++ b/ggml/src/ggml-vulkan/ggml-vulkan.cpp @@ -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";