Skip to content

Cpu: Allow more threads than cores#1426

Merged
louisfd merged 4 commits into
mainfrom
fix/cpu-sync-scheduling
Jul 14, 2026
Merged

Cpu: Allow more threads than cores#1426
louisfd merged 4 commits into
mainfrom
fix/cpu-sync-scheduling

Conversation

@louisfd

@louisfd louisfd commented Jul 14, 2026

Copy link
Copy Markdown
Member

No description provided.

louisfd and others added 3 commits July 13, 2026 16:53
Set `needs_parallelism` for `SyncCube` so the scheduler never queues two
units of the same cube on one worker, which would deadlock the spin
barrier. Clamp the hardcoded cube dims in the shared saturating and
synchronization runtime tests to `max_units_per_cube` so they pass on
machines with fewer than 16 cores (e.g. CPU CI).

Drops the earlier unnecessary changes: the MLIR `thread_yield` extern in
`sync_cube` (bad for a barrier that must resolve ASAP) and the loud
`max_units_per_cube` launch enforcement.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@louisfd
louisfd requested a review from marcantoinem July 14, 2026 13:11
@louisfd
louisfd merged commit 6e0b3cd into main Jul 14, 2026
6 checks passed
@louisfd
louisfd deleted the fix/cpu-sync-scheduling branch July 14, 2026 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant