[v3 backport] Add Polyester threading extension for FastBroadcast VectorOfArray#568
Merged
ChrisRackauckas merged 4 commits intoSciML:v3-backportfrom Apr 5, 2026
Conversation
…ay (SciML#564) Replace Base.Threads threading with Polyester @Batch in FastBroadcast VectorOfArray extension. When Polyester is loaded, the 3-way extension RecursiveArrayToolsFastBroadcastPolyesterExt provides threaded broadcasting using Polyester.@Batch. Without Polyester, threaded broadcasting falls back to serial to avoid issues with mixing Polyester and Base threading. Bump version to 3.54.0. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
When Polyester is not loaded and a user requests threaded FastBroadcast
on VectorOfArray{SArray}, throw an error explaining they need to load
Polyester.jl. Also fix tests to use Vector-of-SVector construction
(not Matrix-of-SVector) to properly exercise the SArray-specific path.
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
When Polyester is loaded, RecursiveArrayToolsFastBroadcastPolyesterExt defines more-specific methods for AbstractVectorOfSArray that win dispatch, so the base ext's AbstractVectorOfArray fallback is only reached when Polyester is not loaded. The flag check was redundant. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The Tests.yml workflow was only triggering on PRs to master, so PRs targeting v3-backport had no CI coverage. Add v3-backport to the branches list for both pull_request and push triggers. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Backport of #567 to the v3-backport branch. Bumps version to 3.54.0.
@batchfor FastBroadcast VectorOfArray operations (addresses Multithreading withRecursiveArrayTools.VectorOfArrayis broken #564)RecursiveArrayToolsFastBroadcastPolyesterExttriggered by[FastBroadcast, Polyester]Test plan
Pkg.test()passes locally on v3 branch🤖 Generated with Claude Code