Skip to content

Adding parameters hook function for partition management#7192

Open
kollanur wants to merge 11 commits intoTheHPXProject:masterfrom
kollanur:custom_hookup
Open

Adding parameters hook function for partition management#7192
kollanur wants to merge 11 commits intoTheHPXProject:masterfrom
kollanur:custom_hookup

Conversation

@kollanur
Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Bharath <bharath.kollanur@gmail.com>
@kollanur kollanur requested a review from hkaiser as a code owner April 16, 2026 13:44
@StellarBot
Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@codacy-production
Copy link
Copy Markdown

codacy-production Bot commented Apr 16, 2026

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@hkaiser hkaiser changed the title custom hookup Adding parameters hook function for partition management Apr 16, 2026
kollanur and others added 7 commits April 20, 2026 10:23
Signed-off-by: Bharath <bharath.kollanur@gmail.com>
Signed-off-by: Bharath <bharath.kollanur@gmail.com>
Signed-off-by: Bharath <bharath.kollanur@gmail.com>
Signed-off-by: Hartmut Kaiser <hartmut.kaiser@gmail.com>
Signed-off-by: Hartmut Kaiser <hartmut.kaiser@gmail.com>
@hkaiser
Copy link
Copy Markdown
Contributor

hkaiser commented Apr 24, 2026

@kollanur inspect is not happy:

/libs/core/execution/tests/unit/executor_parameters_partition_hooks.cpp: 
    *I* missing #include (functional) for symbol std::ref on line 75, 
    *I* missing #include (hpx/assert.hpp) for symbol HPX_ASSERT on line 39, 
    *I* missing #include (string) for symbol std::string on line 122, 
    *I* missing #include (type_traits) for symbol std::true_type on line 59, 
    *I* missing #include (utility) for symbol std::pair on line 52

… chunk too

Signed-off-by: Bharath <bharath.kollanur@gmail.com>
Comment thread libs/core/algorithms/include/hpx/parallel/algorithms/merge.hpp Outdated
Comment thread libs/core/algorithms/include/hpx/parallel/algorithms/merge.hpp
/// \cond NOINTERNAL

///////////////////////////////////////////////////////////////////////
enum class partition_phase : std::size_t
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we reduce the size of the enumerator values?

Suggested change
enum class partition_phase : std::size_t
enum class partition_phase : std::uint8_t

partition_hooks_parameters& self, Executor&&, std::size_t partition,
auto, std::size_t a, std::size_t b, auto) noexcept
{
HPX_ASSERT(partition < self.values_.size());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
HPX_ASSERT(partition < self.values_.size());
HPX_TEST(partition < self.values_.size());

?

friend void tag_override_invoke(
hpx::execution::experimental::mark_partition_t,
partition_hooks_parameters& self, Executor&&, std::size_t partition,
auto, std::size_t a, std::size_t b, auto) noexcept
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we test that the argument really is partition_phase::begin?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants