From 299821140afdac8f0e4bf4a5ad5d893d2a5a598f Mon Sep 17 00:00:00 2001 From: Jared Van Bortel Date: Mon, 29 Jan 2024 15:20:45 -0500 Subject: [PATCH] fix incorrect memcpy --- ggml-kompute.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml-kompute.cpp b/ggml-kompute.cpp index 0d9956377..51c5af8ec 100644 --- a/ggml-kompute.cpp +++ b/ggml-kompute.cpp @@ -282,7 +282,7 @@ ggml_vk_device * ggml_vk_available_devices(size_t memoryRequired, size_t * count size_t nbytes = sizeof (ggml_vk_device) * (devices.size()); auto * arr = static_cast(malloc(nbytes)); - memcpy(&arr, devices.data(), nbytes); + memcpy(arr, devices.data(), nbytes); return arr; }