Skip to content

Commit

Permalink
fix incorrect memcpy
Browse files Browse the repository at this point in the history
  • Loading branch information
cebtenzzre committed Jan 29, 2024
1 parent 1f98dff commit 2998211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ggml-kompute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<ggml_vk_device *>(malloc(nbytes));
memcpy(&arr, devices.data(), nbytes);
memcpy(arr, devices.data(), nbytes);
return arr;
}

Expand Down

0 comments on commit 2998211

Please sign in to comment.