File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19698,9 +19698,6 @@ static enum ggml_status ggml_graph_compute_parallel(struct ggml_compute_state *
19698
19698
// this is a work thread too
19699
19699
ggml_graph_compute_thread(&workers[0]);
19700
19700
19701
- // don't leave affinity set on the main thread
19702
- clear_numa_thread_affinity();
19703
-
19704
19701
// join or kill thread pool
19705
19702
if (n_threads > 1) {
19706
19703
for (int j = 1; j < n_threads; j++) {
@@ -19710,6 +19707,9 @@ static enum ggml_status ggml_graph_compute_parallel(struct ggml_compute_state *
19710
19707
}
19711
19708
}
19712
19709
#endif
19710
+ // don't leave affinity set on the main thread
19711
+ clear_numa_thread_affinity();
19712
+
19713
19713
for (int j = 0; j < n_threads; j++) {
19714
19714
if (workers[j].ec != GGML_STATUS_SUCCESS) {
19715
19715
compute_status = workers[j].ec;
You can’t perform that action at this time.
0 commit comments