Skip to content

Commit 0a2a384

Browse files
authored
vulkan: fix shaders gen when no integer dot is available (#15740)
1 parent 9961d24 commit 0a2a384

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,13 @@ void write_output_files() {
854854
fputs(len.c_str(), src);
855855
}
856856

857-
for (const std::string& btype : {"f16", "f32", "q8_1"}) {
857+
std::vector<std::string> btypes = {"f16", "f32"};
858+
859+
#if defined(GGML_VULKAN_INTEGER_DOT_GLSLC_SUPPORT)
860+
btypes.push_back("q8_1");
861+
#endif
862+
863+
for (const std::string& btype : btypes) {
858864
for (const auto& tname : type_names) {
859865
if (btype == "q8_1" && !is_legacy_quant(tname)) {
860866
continue;

0 commit comments

Comments
 (0)