fix incorrect memcpy
This commit is contained in:
parent
1f98dff7a9
commit
299821140a
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
size_t nbytes = sizeof (ggml_vk_device) * (devices.size());
|
||||||
auto * arr = static_cast<ggml_vk_device *>(malloc(nbytes));
|
auto * arr = static_cast<ggml_vk_device *>(malloc(nbytes));
|
||||||
memcpy(&arr, devices.data(), nbytes);
|
memcpy(arr, devices.data(), nbytes);
|
||||||
return arr;
|
return arr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue