]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
vulkan : initialize vk_buffer_struct members to VK_NULL_HANDLE (ggml/893)
authorTony Wasserka <redacted>
Sat, 20 Jul 2024 18:49:44 +0000 (20:49 +0200)
committerGeorgi Gerganov <redacted>
Sat, 27 Jul 2024 14:43:44 +0000 (17:43 +0300)
commit203b7f1531303a060730ec1d1e01920e70302398
tree5a0d48ab320ddfd59c60233d4e358350aa60826d
parentd2b851bfa131478665315bc5c7c707506c14d703
vulkan : initialize vk_buffer_struct members to VK_NULL_HANDLE (ggml/893)

This prevents invalid frees when destroying a partially initialized
vk_buffer_struct. For example, this could happen in ggml_vk_create_buffer
when running out of device memory.

Co-authored-by: Tony Wasserka <redacted>
ggml/src/ggml-vulkan.cpp