vulkan: fix buffer logging on 32-bit platforms after source split (#30326)

Move the vk::Buffer stream operator to the shared header so it is visible to ggml-vulkan-debug.cpp.
This commit is contained in:
miyan authored and GitHub committed 2026-10-12 06:51:24 +02:00
1 parent e937b17a2d
commit b2f036c0f1
2 files changed
+4 -5

No files matched your search

@@ -1,6 +1,10 @@
#pragma once
#include "ggml-vulkan-push-constants.h"
inline std::ostream & operator<<(std::ostream & os, vk::Buffer buffer) {
return os << static_cast<VkBuffer>(buffer);
}
// shared globals
extern ggml_backend_buffer_type_i ggml_backend_vk_buffer_type_interface;
extern bool vk_memory_logger_enabled;
-5
View File
@@ -1,10 +1,5 @@
#include "ggml-vulkan-common.h"
namespace {
inline std::ostream & operator<<(std::ostream & os, vk::Buffer buffer) {
return os << static_cast<VkBuffer>(buffer);
}
}
static vk_device_architecture get_device_architecture(const vk::PhysicalDevice& device) {
vk::PhysicalDeviceProperties props = device.getProperties();