ggml: fix build error when enable GGML_VULKAN_DEBUG
llama.cpp/ggml/src/ggml-vulkan.cpp:2483:26: error: no match for ‘operator<<’ (operand types are ‘std::basic_ostream<char>’ and ‘const vk::DescriptorBufferInfo’) 2483 | std::cerr << "(" << buffer << ", " << buffer.offset << ", " << buffer.size << "), "; | ~~~~~~~~~~~~~~~~ ^~ ~~~~~~ | | | | | const vk::DescriptorBufferInfo | std::basic_ostream<char> llama.cpp/ggml/src/ggml-vulkan.cpp:61:40: note: in definition of macro ‘VK_LOG_DEBUG’ Signed-off-by: Cong Liu <liucong2@kylinos.cn>
This commit is contained in:
parent
8ebe8ddebd
commit
4e66c9caad
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
const uint32_t wg2 = CEIL_DIV(elements[2], pipeline->wg_denoms[2]);
|
||||||
VK_LOG_DEBUG("ggml_vk_dispatch_pipeline(" << pipeline->name << ", {";
|
VK_LOG_DEBUG("ggml_vk_dispatch_pipeline(" << pipeline->name << ", {";
|
||||||
for (auto& buffer : descriptor_buffer_infos) {
|
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 << "))");
|
std::cerr << "}, (" << wg0 << "," << wg1 << "," << wg2 << "))");
|
||||||
GGML_ASSERT(pipeline->descriptor_set_idx < pipeline->descriptor_sets.size());
|
GGML_ASSERT(pipeline->descriptor_set_idx < pipeline->descriptor_sets.size());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue