ggml: force single thread on wasi (#25686)

This commit is contained in:
Mendy Berger
2026-08-14 09:16:20 +03:00
committed by GitHub
parent 3d93885352
commit c6f6a92c55
+5
View File
@@ -2795,6 +2795,11 @@ struct ggml_cplan ggml_graph_plan(
n_threads = 1;
#endif
#if defined(__wasi__)
// WASI doesn't support parallelism yet
n_threads = 1;
#endif
size_t work_size = 0;
struct ggml_cplan cplan;