mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-10-27 08:21:30 +00:00
vulkan: fix shaders gen when no integer dot is available (#15740)
This commit is contained in:
@@ -854,7 +854,13 @@ void write_output_files() {
|
|||||||
fputs(len.c_str(), src);
|
fputs(len.c_str(), src);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const std::string& btype : {"f16", "f32", "q8_1"}) {
|
std::vector<std::string> btypes = {"f16", "f32"};
|
||||||
|
|
||||||
|
#if defined(GGML_VULKAN_INTEGER_DOT_GLSLC_SUPPORT)
|
||||||
|
btypes.push_back("q8_1");
|
||||||
|
#endif
|
||||||
|
|
||||||
|
for (const std::string& btype : btypes) {
|
||||||
for (const auto& tname : type_names) {
|
for (const auto& tname : type_names) {
|
||||||
if (btype == "q8_1" && !is_legacy_quant(tname)) {
|
if (btype == "q8_1" && !is_legacy_quant(tname)) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user