Skip to content

Commit

Permalink
[FIX] Fix iris_warp_t::join() spin wait.
Browse files Browse the repository at this point in the history
  • Loading branch information
paintdream committed Dec 26, 2024
1 parent f64400e commit 85619b0
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/iris_dispatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -446,17 +446,14 @@ namespace iris {
} else {
if /* constexpr */ (execute_remaining) {
(*p).execute_parallel();
}

// nobody else suspend this warp
if ((*p).suspend_count.load(std::memory_order_acquire) == (finalize ? 0 : 1)) {
// execute remaining
if /* constexpr */ (execute_remaining) {
// nobody else suspend this warp
if ((*p).suspend_count.load(std::memory_order_acquire) == (finalize ? 0 : 1)) {
// execute remaining
(*p).template execute_internal<strand, true>();
}

break;
}

break;
}
}
}
Expand Down

0 comments on commit 85619b0

Please sign in to comment.