fix compile issues

This commit is contained in:
Markus Tavenrath 2024-08-21 19:08:01 +02:00
parent 73beb8ddab
commit fb7befd045

View file

@ -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()) {