]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
vulkan: Better thread-safety for command pools/buffers (llama/14116)
authorJeff Bolz <redacted>
Wed, 11 Jun 2025 14:48:52 +0000 (09:48 -0500)
committerGeorgi Gerganov <redacted>
Wed, 18 Jun 2025 07:21:15 +0000 (10:21 +0300)
commit8ea17ca29657e539c7e8c052a5ee714cc53f7fd1
tree86fb137bde9f1469033193c44efe49e7630ae087
parentc2d529a54b24aedfd4a99160bbe111c3b8ed72b2
vulkan: Better thread-safety for command pools/buffers (llama/14116)

This change moves the command pool/buffer tracking into a vk_command_pool
structure. There are two instances per context (for compute+transfer) and
two instances per device for operations that don't go through a context.
This should prevent separate contexts from stomping on each other.
src/ggml-vulkan/ggml-vulkan.cpp