LLM inference in C/C++
C++ ggml
vulkan: fix buffer logging on 32-bit platforms after source split (#30326)
miyanb2f036c0f138
diff --git a/ggml/src/ggml-vulkan/ggml-vulkan-common.h b/ggml/src/ggml-vulkan/ggml-vulkan-common.hindex a642c55165..134078bd27 100644--- a/ggml/src/ggml-vulkan/ggml-vulkan-common.h+++ b/ggml/src/ggml-vulkan/ggml-vulkan-common.h@@ -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 globalsextern ggml_backend_buffer_type_i ggml_backend_vk_buffer_type_interface;extern bool vk_memory_logger_enabled;diff --git a/ggml/src/ggml-vulkan/ggml-vulkan.cpp b/ggml/src/ggml-vulkan/ggml-vulkan.cppindex 80f4d3acfc..05c63b64e3 100644--- a/ggml/src/ggml-vulkan/ggml-vulkan.cpp+++ b/ggml/src/ggml-vulkan/ggml-vulkan.cpp@@ -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();