From 02d2e38949a54abe5162af8741264dfe9c5dfe7e Mon Sep 17 00:00:00 2001 From: 0cc4m Date: Wed, 17 Jan 2024 06:27:40 +0100 Subject: [PATCH] Fix missing event cast --- ggml-vulkan.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ggml-vulkan.cpp b/ggml-vulkan.cpp index 1ebaf4d4e..2d3507847 100644 --- a/ggml-vulkan.cpp +++ b/ggml-vulkan.cpp @@ -4128,10 +4128,10 @@ bool ggml_vk_compute_forward(ggml_compute_params * params, ggml_tensor * tensor) memcpy(cpy.dst, cpy.src, cpy.n); } // Trigger staging events if any exists - if (extra->in0_staging_event != VK_NULL_HANDLE) { + if (extra->in0_staging_event != (vk::Event) VK_NULL_HANDLE) { vk_device.device.setEvent(extra->in0_staging_event); } - if (extra->in1_staging_event != VK_NULL_HANDLE) { + if (extra->in1_staging_event != (vk::Event) VK_NULL_HANDLE) { vk_device.device.setEvent(extra->in1_staging_event); }