Skip to content

Commit ceb1bf5

Browse files
authored
vulkan: Fix GGML_VULKAN_SHADER_DEBUG_INFO (#14427)
This setting needs to be passed through to vulkan-shaders-gen
1 parent 72babea commit ceb1bf5

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

ggml/src/ggml-vulkan/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ if (Vulkan_FOUND)
9999

100100
if (GGML_VULKAN_SHADER_DEBUG_INFO)
101101
add_compile_definitions(GGML_VULKAN_SHADER_DEBUG_INFO)
102+
list(APPEND VULKAN_SHADER_GEN_CMAKE_ARGS -DGGML_VULKAN_SHADER_DEBUG_INFO=ON)
102103
endif()
103104

104105
if (GGML_VULKAN_VALIDATE)

ggml/src/ggml-vulkan/vulkan-shaders/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ if (GGML_VULKAN_BFLOAT16_GLSLC_SUPPORT)
1919
add_compile_definitions(GGML_VULKAN_BFLOAT16_GLSLC_SUPPORT)
2020
message(STATUS "Enabling bfloat16 glslc support")
2121
endif()
22+
if (GGML_VULKAN_SHADER_DEBUG_INFO)
23+
add_compile_definitions(GGML_VULKAN_SHADER_DEBUG_INFO)
24+
message(STATUS "Enabling shader debug info")
25+
endif()
2226

2327
set(TARGET vulkan-shaders-gen)
2428
add_executable(${TARGET} vulkan-shaders-gen.cpp)

0 commit comments

Comments
 (0)