Skip to content

Backport: Fix threaded FastBroadcast for VectorOfArray#566

Merged
ChrisRackauckas merged 2 commits intoSciML:v3-backportfrom
ChrisRackauckas-Claude:fix-threaded-voa-broadcast-v3
Apr 4, 2026
Merged

Backport: Fix threaded FastBroadcast for VectorOfArray#566
ChrisRackauckas merged 2 commits intoSciML:v3-backportfrom
ChrisRackauckas-Claude:fix-threaded-voa-broadcast-v3

Conversation

@ChrisRackauckas-Claude
Copy link
Copy Markdown
Contributor

Summary

Backport of #565 to v3-backport branch.

  • Fixes Multithreading with RecursiveArrayTools.VectorOfArray is broken #564: @.. thread=true on VectorOfArray{SArray} was applying the operation once per thread instead of partitioning work
  • Adds Threaded dispatch for AbstractVectorOfSArray using Threads.@threads
  • Adds Threaded fallback for general AbstractVectorOfArray → Serial
  • Adds regression test

🤖 Generated with Claude Code

ChrisRackauckas and others added 2 commits April 3, 2026 20:22
The generic threaded path in FastBroadcast splits work along the last
axis via views, which does not correctly partition VectorOfArray —
each thread ended up operating on the full array. Add Threaded dispatch
methods that iterate over inner arrays directly using Threads.@threads
for SArray VectorOfArrays, and fall back to Serial for other types.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ChrisRackauckas ChrisRackauckas merged commit cdd0769 into SciML:v3-backport Apr 4, 2026
17 of 18 checks passed
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.

2 participants