From fb7befd045146e3f859a711cffc841e19167dc41 Mon Sep 17 00:00:00 2001 From: Markus Tavenrath Date: Wed, 21 Aug 2024 19:08:01 +0200 Subject: [PATCH] fix compile issues --- ggml/src/ggml-vulkan.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ggml/src/ggml-vulkan.cpp b/ggml/src/ggml-vulkan.cpp index 3dd242df1..916f05c0b 100644 --- a/ggml/src/ggml-vulkan.cpp +++ b/ggml/src/ggml-vulkan.cpp @@ -5617,7 +5617,7 @@ static void ggml_vk_preallocate_buffers(ggml_backend_vk_context * ctx) { } } -bool ggml_vk_compute_forward(ggml_backend_vk_context* ctx, ggml_tensor* tensor, int tensor_idx, bool use_fence); +static bool ggml_vk_compute_forward(ggml_backend_vk_context* ctx, ggml_tensor* tensor, int tensor_idx, bool use_fence); // Returns true if node has enqueued work into the queue, false otherwise // If submit is true the current all operations queued so far are being submitted to Vulkan to overlap cmdlist creation and GPU execution. @@ -5929,7 +5929,7 @@ static bool ggml_vk_compute_forward(ggml_backend_vk_context * ctx, ggml_tensor * vk_context subctx = ctx->tensor_ctxs[tensor_idx].lock(); - VkFence fence = use_fence ? ctx->fence : VkFence{}; + vk::Fence fence = use_fence ? ctx->fence : vk::Fence{}; // Only run if ctx hasn't been submitted yet if (!subctx->seqs.empty()) {