Skip to content

Commit 2bb3597

Browse files
authored
vulkan: fix build when glslc doesn't support coopmat (#12683)
1 parent 8293970 commit 2bb3597

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ggml/src/ggml-vulkan/ggml-vulkan.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3136,7 +3136,9 @@ static void ggml_vk_print_gpu_info(size_t idx) {
31363136
&& shader_integer_dot_product_features.shaderIntegerDotProduct;
31373137

31383138
coopmat_support = coopmat_support
3139+
#if defined(GGML_VULKAN_COOPMAT_GLSLC_SUPPORT)
31393140
&& coopmat_features.cooperativeMatrix
3141+
#endif
31403142
&& ggml_vk_khr_cooperative_matrix_support(props2.properties, driver_props, device_architecture);
31413143

31423144
std::string matrix_cores = coopmat2_support ? "NV_coopmat2" : coopmat_support ? "KHR_coopmat" : "none";

0 commit comments

Comments
 (0)