Spaces:
Running
Running
vulkan: fix compilation with GGML_VULKAN_DEBUG=ON (ggml/948)
Browse filesthe 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 <[email protected]>
- ggml/src/ggml-vulkan.cpp +1 -1
ggml/src/ggml-vulkan.cpp
CHANGED
|
@@ -2480,7 +2480,7 @@ static void ggml_vk_dispatch_pipeline(ggml_backend_vk_context* ctx, vk_context&
|
|
| 2480 |
const uint32_t wg2 = CEIL_DIV(elements[2], pipeline->wg_denoms[2]);
|
| 2481 |
VK_LOG_DEBUG("ggml_vk_dispatch_pipeline(" << pipeline->name << ", {";
|
| 2482 |
for (auto& buffer : descriptor_buffer_infos) {
|
| 2483 |
-
std::cerr << "(" << buffer << ", " << buffer.offset << ", " << buffer.
|
| 2484 |
}
|
| 2485 |
std::cerr << "}, (" << wg0 << "," << wg1 << "," << wg2 << "))");
|
| 2486 |
GGML_ASSERT(pipeline->descriptor_set_idx < pipeline->descriptor_sets.size());
|
|
|
|
| 2480 |
const uint32_t wg2 = CEIL_DIV(elements[2], pipeline->wg_denoms[2]);
|
| 2481 |
VK_LOG_DEBUG("ggml_vk_dispatch_pipeline(" << pipeline->name << ", {";
|
| 2482 |
for (auto& buffer : descriptor_buffer_infos) {
|
| 2483 |
+
std::cerr << "(" << buffer.buffer << ", " << buffer.offset << ", " << buffer.range << "), ";
|
| 2484 |
}
|
| 2485 |
std::cerr << "}, (" << wg0 << "," << wg1 << "," << wg2 << "))");
|
| 2486 |
GGML_ASSERT(pipeline->descriptor_set_idx < pipeline->descriptor_sets.size());
|