Skip to content

Commit 7226483

Browse files
committed
spin more
1 parent e4643ad commit 7226483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18992,7 +18992,7 @@ static void ggml_barrier(struct ggml_compute_state * state) {
1899218992
// wait for other threads
1899318993
//while (atomic_load(n_barrier_passed) == passed_old) {
1899418994
//}
18995-
const int n_spin_before_sleep = 100;
18995+
const int n_spin_before_sleep = 100000;
1899618996
while (true) {
1899718997
for (int i = 0; i < n_spin_before_sleep; i++) {
1899818998
if (atomic_load(n_barrier_passed) != passed_old) {

0 commit comments

Comments
 (0)