From 0b0e456202f67e0632c2fb2d8e1928c5b382cf15 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Thu, 19 Sep 2024 13:56:19 +0800 Subject: [PATCH] try fix compile issues --- ggml/src/ggml-vulkan.cpp | 2 +- otherarch/ggml_v3.c | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/ggml/src/ggml-vulkan.cpp b/ggml/src/ggml-vulkan.cpp index e6a87fa94..6eb865717 100644 --- a/ggml/src/ggml-vulkan.cpp +++ b/ggml/src/ggml-vulkan.cpp @@ -2626,7 +2626,7 @@ static void ggml_vk_buffer_write_nc_async(ggml_backend_vk_context * ctx, vk_cont VkBufferCopy buf_copy{ 0, offset, copy_size }; ggml_vk_sync_buffers(subctx); - vkCmdCopyBuffer(subctx->s->buffer, staging->buffer, dst->buffer, 1, &buf_copy); + vkCmdCopyBuffer(static_cast(subctx->s->buffer), static_cast(staging->buffer), static_cast(dst->buffer), 1, &buf_copy); for (uint64_t i3 = 0; i3 < ne3; i3++) { for (uint64_t i2 = 0; i2 < ne2; i2++) { diff --git a/otherarch/ggml_v3.c b/otherarch/ggml_v3.c index 826f285b0..b4a51c960 100644 --- a/otherarch/ggml_v3.c +++ b/otherarch/ggml_v3.c @@ -21458,10 +21458,6 @@ inline static int32_t vaddvq_s32(int32x4_t v) { return vgetq_lane_s32(v, 0) + vgetq_lane_s32(v, 1) + vgetq_lane_s32(v, 2) + vgetq_lane_s32(v, 3); } -inline static float vaddvq_f32(float32x4_t v) { - return vgetq_lane_f32(v, 0) + vgetq_lane_f32(v, 1) + vgetq_lane_f32(v, 2) + vgetq_lane_f32(v, 3); -} - inline static float vmaxvq_f32(float32x4_t v) { return MAX(MAX(vgetq_lane_f32(v, 0), vgetq_lane_f32(v, 1)),