File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,14 @@ if (Vulkan_FOUND)
36
36
set (GGML_VULKAN_COOPMAT_GLSLC_SUPPORT OFF CACHE INTERNAL "Whether coopmat is supported by glslc" )
37
37
else ()
38
38
message (STATUS "GL_KHR_cooperative_matrix supported by glslc" )
39
- add_compile_definitions (GGML_VULKAN_COOPMAT_GLSLC_SUPPORT )
40
39
set (GGML_VULKAN_COOPMAT_GLSLC_SUPPORT ON CACHE INTERNAL "Whether coopmat is supported by glslc" )
41
40
endif ()
41
+ else ()
42
+ message (STATUS "GL_KHR_cooperative_matrix support already defined: ${GGML_VULKAN_COOPMAT_GLSLC_SUPPORT} " )
43
+ endif ()
44
+
45
+ if (GGML_VULKAN_COOPMAT_GLSLC_SUPPORT )
46
+ add_compile_definitions (GGML_VULKAN_COOPMAT_GLSLC_SUPPORT )
42
47
endif ()
43
48
44
49
if (NOT DEFINED GGML_VULKAN_COOPMAT2_GLSLC_SUPPORT )
@@ -54,9 +59,15 @@ if (Vulkan_FOUND)
54
59
set (GGML_VULKAN_COOPMAT2_GLSLC_SUPPORT OFF CACHE INTERNAL "Whether coopmat2 is supported by glslc" )
55
60
else ()
56
61
message (STATUS "GL_NV_cooperative_matrix2 supported by glslc" )
57
- add_compile_definitions ( GGML_VULKAN_COOPMAT2_GLSLC_SUPPORT )
62
+
58
63
set (GGML_VULKAN_COOPMAT2_GLSLC_SUPPORT ON CACHE INTERNAL "Whether coopmat2 is supported by glslc" )
59
64
endif ()
65
+ else ()
66
+ message (STATUS "GL_NV_cooperative_matrix2 support already defined: ${GGML_VULKAN_COOPMAT2_GLSLC_SUPPORT} " )
67
+ endif ()
68
+
69
+ if (GGML_VULKAN_COOPMAT2_GLSLC_SUPPORT )
70
+ add_compile_definitions (GGML_VULKAN_COOPMAT2_GLSLC_SUPPORT )
60
71
endif ()
61
72
62
73
target_link_libraries (ggml-vulkan PRIVATE Vulkan::Vulkan )
You can’t perform that action at this time.
0 commit comments