Skip to content

Commit

Permalink
spin more
Browse files Browse the repository at this point in the history
  • Loading branch information
slaren committed Jun 18, 2024
1 parent e4643ad commit 7226483
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -18992,7 +18992,7 @@ static void ggml_barrier(struct ggml_compute_state * state) {
// wait for other threads
//while (atomic_load(n_barrier_passed) == passed_old) {
//}
const int n_spin_before_sleep = 100;
const int n_spin_before_sleep = 100000;
while (true) {
for (int i = 0; i < n_spin_before_sleep; i++) {
if (atomic_load(n_barrier_passed) != passed_old) {
Expand Down

0 comments on commit 7226483

Please sign in to comment.