From: Salvatore Mesoraca Date: Fri, 6 Sep 2024 12:34:33 +0000 (+0200) Subject: vulkan: fix compilation with GGML_VULKAN_DEBUG=ON (ggml/948) X-Git-Tag: upstream/1.7.4~435 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=09149ee0aef0a2ddb99107bf8d3dc2891c6a82de;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp vulkan: fix compilation with GGML_VULKAN_DEBUG=ON (ggml/948) the old code was trying to print a non-existent field (size) and the struct as a whole (which doesn't have a operator<< override defined). Probably a typo happened during refactoring. Signed-off-by: Salvatore Mesoraca --- diff --git a/ggml/src/ggml-vulkan.cpp b/ggml/src/ggml-vulkan.cpp index 672dc634..d6f647c8 100644 --- a/ggml/src/ggml-vulkan.cpp +++ b/ggml/src/ggml-vulkan.cpp @@ -2480,7 +2480,7 @@ static void ggml_vk_dispatch_pipeline(ggml_backend_vk_context* ctx, vk_context& const uint32_t wg2 = CEIL_DIV(elements[2], pipeline->wg_denoms[2]); VK_LOG_DEBUG("ggml_vk_dispatch_pipeline(" << pipeline->name << ", {"; for (auto& buffer : descriptor_buffer_infos) { - std::cerr << "(" << buffer << ", " << buffer.offset << ", " << buffer.size << "), "; + std::cerr << "(" << buffer.buffer << ", " << buffer.offset << ", " << buffer.range << "), "; } std::cerr << "}, (" << wg0 << "," << wg1 << "," << wg2 << "))"); GGML_ASSERT(pipeline->descriptor_set_idx < pipeline->descriptor_sets.size());