Skip to content

Commit 48c2bd8

Browse files
committed
add: fix issues/16860 comments
1 parent 2ea0562 commit 48c2bd8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ void string_to_spv_func(std::string name, std::string in_path, std::string out_p
338338
for (const auto& define : defines) {
339339
cmd.push_back("-D" + define.first + "=" + define.second);
340340
}
341+
// disable D_TYPE same as A_TYPE cast for rope shaders https://github.com/ggml-org/llama.cpp/issues/16860
341342
if (name.find("rope") != std::string::npos && defines["D_TYPE"] == defines["A_TYPE"] ) {
342343
cmd.push_back("-DROPE_SAME_TYPE");
343344
}

0 commit comments

Comments
 (0)