Skip to content

Commit d2d931f

Browse files
authored
vulkan: disable spirv-opt for rope shaders (#16872)
1 parent 2976b03 commit d2d931f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ggml/src/ggml-vulkan/vulkan-shaders/vulkan-shaders-gen.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,8 @@ void string_to_spv_func(std::string name, std::string in_path, std::string out_p
317317

318318
// disable spirv-opt for coopmat shaders for https://github.com/ggerganov/llama.cpp/issues/10734
319319
// disable spirv-opt for bf16 shaders for https://github.com/ggml-org/llama.cpp/issues/15344
320-
std::string opt_level = (coopmat || name.find("bf16") != std::string::npos) ? "" : "-O";
320+
// disable spirv-opt for rope shaders for https://github.com/ggml-org/llama.cpp/issues/16860
321+
std::string opt_level = (coopmat || name.find("bf16") != std::string::npos || name.find("rope") != std::string::npos) ? "" : "-O";
321322

322323
#ifdef _WIN32
323324
std::vector<std::string> cmd = {GLSLC, "-fshader-stage=compute", target_env, opt_level, "\"" + in_path + "\"", "-o", "\"" + out_path + "\""};

0 commit comments

Comments
 (0)