Skip to content

Do not dispatch thread-pool bulk for negative shapes - #2235

Open
fallintoplace wants to merge 1 commit into
NVIDIA:mainfrom
fallintoplace:fix/thread-pool-negative-bulk-shape
Open

Do not dispatch thread-pool bulk for negative shapes#2235
fallintoplace wants to merge 1 commit into
NVIDIA:mainfrom
fallintoplace:fix/thread-pool-negative-bulk-shape

Conversation

@fallintoplace

Copy link
Copy Markdown
Contributor

Summary

bulk_chunked treats non-positive shapes as empty ranges. The generic implementation already follows that rule, but the specialized thread-pool paths only checked whether the shape was nonzero.

  • Avoid dispatching negative shapes to even_share in static_thread_pool.
  • Avoid converting negative shapes into a huge agent count in thread_pool_base.
  • Add regression coverage for both implementations.

Tests

  • cmake --build build --target test.exec test.stdexec --parallel 4
  • ./build/test/test.stdexec
  • ./build/test/exec/test.exec

@copy-pr-bot

copy-pr-bot Bot commented Aug 26, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

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