ggml-virtgpu: make the remote calls thread-safe

This commit is contained in:
Kevin Pouget 2026-01-28 14:55:30 +01:00
parent fcc6890710
commit 171ab8b4ad
1 changed files with 2 additions and 2 deletions

View File

@ -340,9 +340,9 @@ apir_encoder * remote_call_prepare(virtgpu * gpu, ApirCommandType apir_cmd_type,
* Prepare the command encoder and its buffer * Prepare the command encoder and its buffer
*/ */
static char encoder_buffer[4096]; thread_local char encoder_buffer[4096];
static apir_encoder enc; thread_local apir_encoder enc;
enc = { enc = {
.cur = encoder_buffer, .cur = encoder_buffer,
.start = encoder_buffer, .start = encoder_buffer,