feature(parallel): add parallel plugin execution with resource-aware scheduling#10
Open
quinnjr wants to merge 1 commit intoFIUBioRG:masterfrom
Open
feature(parallel): add parallel plugin execution with resource-aware scheduling#10quinnjr wants to merge 1 commit intoFIUBioRG:masterfrom
quinnjr wants to merge 1 commit intoFIUBioRG:masterfrom
Conversation
…scheduling Introduces explicit Parallel/EndParallel blocks in pipeline config files to run independent plugins concurrently via fork()-based process isolation. Components: - ConfigParser: parses Parallel blocks with workers/memory/gpu/fail options - ResourceBudget: tracks memory, GPU, and worker slot allocation - ParallelScheduler: fork-based dispatch with fail-fast/continue modes - Unit tests (Catch2): 67 tests covering parser, budget, and scheduler - Fuzz targets (libFuzzer): parse_size, parse_config, parse_plugin_task, resource_budget with seed corpus Made-with: Cursor
ef26e38 to
e4a8bdd
Compare
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
Adds support for running independent pipeline plugins concurrently via explicit
Parallel/EndParallelblocks in PluMA configuration files. This enables significant speedups for pipelines with independent processing steps while preserving PluMA's modular plugin architecture.Key features
Parallel/EndParalleldirectives in config files withworkers,memory,gpu, andfailoptionsfail=fast(default) aborts on first error;fail=continueruns all tasksConfig syntax example
Components
src/ParallelTypes.hParallelBlock,PluginTask,ResourceBudget, etc.)src/ConfigParser.{h,cxx}Parallelblocks, size strings, plugin taskssrc/ResourceBudget.{h,cxx}src/ParallelScheduler.{h,cxx}tests/fuzz/Testing
Test plan
ConfigParserandParallelSchedulerintosrc/PluMA.cxxmain loopMade with Cursor