From: Wagner Bruna Date: Tue, 1 Apr 2025 09:38:07 +0000 (-0300) Subject: vulkan: fix build when glslc doesn't support coopmat (#12683) X-Git-Tag: upstream/0.0.5028~11 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=2bb3597e426ce092c3e10ae0bdd876963765e6ed;p=pkg%2Fggml%2Fsources%2Fllama.cpp vulkan: fix build when glslc doesn't support coopmat (#12683) --- diff --git a/ggml/src/ggml-vulkan/ggml-vulkan.cpp b/ggml/src/ggml-vulkan/ggml-vulkan.cpp index 31330e2b..ee0969fe 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";