Wait for all threads to finish

This commit is contained in:
niansa 2023-06-23 16:13:32 +02:00
parent 2589cb0c70
commit 09b0b3a49b

View file

@ -511,6 +511,12 @@ void ggml_vk_graph_compute(struct ggml_kompute_context * ctx, struct ggml_cgraph
}
});
}
// Wait for all threads to finish
for (auto& thread : threads) {
if (thread.joinable())
thread.join();
}
}