metal : fix data race in pipeline library (#17731)

This commit is contained in:
Georgi Gerganov
2025-12-03 14:03:40 +02:00
committed by GitHub
parent 7feb0a1005
commit 3d94e967a1
2 changed files with 22 additions and 11 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ void ggml_metal_pipelines_add(ggml_metal_pipelines_t ppls, const char * name, gg
}
ggml_metal_pipeline_t ggml_metal_pipelines_get(ggml_metal_pipelines_t ppls, const char * name) {
if (ppls->data.find(name) == ppls->data.end()) {
if (ppls->data.find(name) == ppls->data.end()) {
return nullptr;
}