Implement P2300 get_scheduler bridge for parallel_executor#7239
Open
shivansh023023 wants to merge 1 commit intoTheHPXProject:masterfrom
Open
Implement P2300 get_scheduler bridge for parallel_executor#7239shivansh023023 wants to merge 1 commit intoTheHPXProject:masterfrom
shivansh023023 wants to merge 1 commit intoTheHPXProject:masterfrom
Conversation
Up to standards ✅🟢 Issues
|
Collaborator
|
Can one of the admins verify this patch? |
30e3cad to
893a621
Compare
- Add executor_scheduler<Executor> adapter (header + module registration) - Add get_scheduler_t tag_invoke to parallel_policy_executor (both flat and hierarchical) - Add get_scheduler_t tag_invoke to sequenced_executor - Add unit tests for both executor_scheduler and parallel_executor_scheduler
893a621 to
1b061a5
Compare
Contributor
|
@shivansh023023 Is this a duplicate for #7238? |
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.
PR Description: Implement P2300
get_schedulerBridge forparallel_executorFixes
This PR continues the effort to modernize HPX executors by providing P2300 (std::execution) support for parallel execution contexts.
Proposed Changes
get_schedulerforparallel_executor: Addedtag_invokeoverloads forhpx::execution::experimental::get_schedulerinparallel_executor.hpp. This supports both the flat and hierarchical parallel policy executors.hpx/executors/executor_scheduler.hppinto the parallel executor module to facilitate the bridge to P2300 schedulers.libs/core/executors/tests/unit/parallel_executor_scheduler.cppto verify that work dispatched viaschedule(get_scheduler(parallel_exec))correctly utilizes the HPX worker thread pool.clang-format.hpx::local::initto ensure compliance with theinspecttool for core modules.This is the second installment of the GSoC 2026 project: "Modernizing HPX Executors for P2300 Compatibility."
While the previous PR handled sequential execution, this PR addresses the multi-threaded use case. By enabling
get_scheduleron theparallel_executor, we allow developers to compose complex P2300 pipelines that automatically scale across all available cores using the underlying HPX thread pool. This is a foundational step for enabling P2300 algorithms (likebulk) to run on HPX distributed systems in the future.Checklist