diff --git a/ggml/src/ggml-vulkan/ggml-vulkan.cpp b/ggml/src/ggml-vulkan/ggml-vulkan.cpp index 7b66614c1..8c89c4b4d 100644 --- a/ggml/src/ggml-vulkan/ggml-vulkan.cpp +++ b/ggml/src/ggml-vulkan/ggml-vulkan.cpp @@ -15554,6 +15554,16 @@ static void ggml_backend_vk_set_tensor_2d_async(ggml_backend_t backend, ggml_ten ggml_backend_vk_context * ctx = (ggml_backend_vk_context *)backend->context; GGML_ASSERT((tensor->buffer->buft == ggml_backend_vk_get_default_buffer_type(backend) || tensor->buffer->buft == ggml_backend_vk_host_buffer_type()) && "unsupported buffer type"); + { + static uint64_t upload_bytes = 0; + static int upload_calls = 0; + upload_bytes += (uint64_t) size * n_copies; + upload_calls++; + if (upload_calls % 40 == 0 || upload_calls == 1) { + fprintf(stderr, "UPLOAD n=%d total=%.2f MiB\n", upload_calls, upload_bytes / 1048576.0); + } + } + if (size == 0) { return; }