ggml: force single thread on wasi (llama/25686)
This commit is contained in:
parent
2d05b6ec1e
commit
5bc0c85254
|
|
@ -2795,6 +2795,11 @@ struct ggml_cplan ggml_graph_plan(
|
||||||
n_threads = 1;
|
n_threads = 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__wasi__)
|
||||||
|
// WASI doesn't support parallelism yet
|
||||||
|
n_threads = 1;
|
||||||
|
#endif
|
||||||
|
|
||||||
size_t work_size = 0;
|
size_t work_size = 0;
|
||||||
|
|
||||||
struct ggml_cplan cplan;
|
struct ggml_cplan cplan;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue