Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
ee3e9dc
Add segmented hpx::sort for partitioned_vector
divyanshitalreja12 Sep 16, 2026
8c477e4
clang-format segmented sort sources
divyanshitalreja12 Sep 16, 2026
fe24897
Sort segmented local ranges by iterator and merge in log P rounds
divyanshitalreja12 Sep 16, 2026
1b9f85a
Merge segmented sort on a data locality to cut network traffic.
divyanshitalreja12 Sep 16, 2026
6d4c125
Republish the segmented-sort branch after the GitHub ref update failed.
divyanshitalreja12 Sep 16, 2026
0b78f18
Stream the segmented-sort k-way merge to bound host memory.
divyanshitalreja12 Sep 16, 2026
c1ecf0e
Lock tuplespace warehouse access and skip the client on Windows CI.
divyanshitalreja12 Sep 16, 2026
5752572
Throw remote exceptions from sequential segmented dispatch.
divyanshitalreja12 Sep 17, 2026
d8c84d4
Guard empty tuplespace matches and sort via base iterators.
divyanshitalreja12 Sep 23, 2026
dd3ef92
Address review feedback for segmented sort implementation.
divyanshitalreja12 Sep 23, 2026
050d7e6
Address further segmented-sort review feedback.
divyanshitalreja12 Sep 24, 2026
ee27651
Address remaining segmented-sort review feedback.
divyanshitalreja12 Sep 24, 2026
809b2c7
Include hpx/assert.hpp for HPX_ASSERT in segmented dispatch.
divyanshitalreja12 Sep 24, 2026
e3f2c50
Fix sequential dispatch assert polarity for remote exceptions.
divyanshitalreja12 Sep 24, 2026
14d7699
Simplify segmented sort and cover subrange edge cases
divyanshitalreja12 Sep 27, 2026
d044827
Batch remote accesses in the segmented sort test
divyanshitalreja12 Sep 27, 2026
b6d91cf
Bound segmented sort merges and respect data locality
divyanshitalreja12 Sep 28, 2026
2039d61
Cover bounded segmented merges and skewed partition placement
divyanshitalreja12 Sep 28, 2026
3df300a
Use headers for segmented sort tests that inspect internal helpers
divyanshitalreja12 Sep 28, 2026
42c7317
Configure the segmented sort test's module fallback in CMake
divyanshitalreja12 Sep 28, 2026
5b2e1b8
Overlap segmented sort work and skip ordered block transfers
divyanshitalreja12 Sep 28, 2026
065ac5e
Cover segmented sort concurrency and endpoint-only checks
divyanshitalreja12 Sep 28, 2026
632484f
Use the specialized id future state for colocation
divyanshitalreja12 Sep 29, 2026
34c548e
Balance segmented sort work across localities
divyanshitalreja12 Sep 29, 2026
834380f
Declare the specialized id future state early
divyanshitalreja12 Sep 30, 2026
8cfd501
Overlap segmented sort block transfers
divyanshitalreja12 Sep 30, 2026
cb3e1b8
Parallelize the segmented bitonic merge network
divyanshitalreja12 Sep 30, 2026
121857c
Use partition metadata for segmented sort placement
divyanshitalreja12 Sep 30, 2026
88f4a3a
Scale segmented sort by physical partition size
divyanshitalreja12 Sep 30, 2026
b843146
Avoid remote segmented sort endpoint probes
divyanshitalreja12 Sep 30, 2026
e189284
Harden segmented sort scheduling regressions
divyanshitalreja12 Sep 30, 2026
6150a6a
Replace segmented sort stages with a k-way merge
divyanshitalreja12 Oct 1, 2026
8c1fce1
Resolve segmented sort placement and transfer review
divyanshitalreja12 Oct 8, 2026
47feee2
Keep internal segmented tests compatible with modules
divyanshitalreja12 Oct 8, 2026
de91c91
Format segmented sort test configuration
divyanshitalreja12 Nov 4, 2026
4b46d48
Avoid Windows macro clash in segmented sort tests
divyanshitalreja12 Nov 5, 2026
e0066e5
Address segmented sort review feedback
divyanshitalreja12 Nov 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1090,6 +1090,13 @@ namespace hpx::traits {
{
return iter->get_id();
}

// Extract the locality id stored in the partition metadata. This
// avoids an AGAS lookup when an algorithm only needs placement.
static std::uint32_t get_locality_id(segment_iterator const& iter)
{
return iter->locality_id_;
}
};

template <typename T, typename Data>
Expand Down Expand Up @@ -1182,6 +1189,13 @@ namespace hpx::traits {
{
return iter->get_id();
}

// Extract the locality id stored in the partition metadata. This
// avoids an AGAS lookup when an algorithm only needs placement.
static std::uint32_t get_locality_id(segment_iterator const& iter)
{
return iter->locality_id_;
}
};

///////////////////////////////////////////////////////////////////////////
Expand Down
1 change: 1 addition & 0 deletions libs/full/include/include/hpx/include/parallel_sort.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@

#include <hpx/config.hpp>
#include <hpx/modules/algorithms.hpp>
#include <hpx/modules/segmented_algorithms.hpp>
1 change: 1 addition & 0 deletions libs/full/segmented_algorithms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ set(segmented_algorithms_headers
hpx/parallel/segmented_algorithms/reduce.hpp
hpx/parallel/segmented_algorithms/replace.hpp
hpx/parallel/segmented_algorithms/replace_copy.hpp
hpx/parallel/segmented_algorithms/sort.hpp
hpx/parallel/segmented_algorithms/traits/zip_iterator.hpp
hpx/parallel/segmented_algorithms/transform_exclusive_scan.hpp
hpx/parallel/segmented_algorithms/transform.hpp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,11 +325,12 @@ namespace hpx::parallel::detail {
{
std::list<std::exception_ptr> errors;
parallel::util::detail::handle_remote_exceptions<ExPolicy>::call(
f.get_exception_ptr(),
errors); // NOLINT(bugprone-use-after-move)
f.get_exception_ptr(), errors);

// NOLINTNEXTLINE(bugprone-use-after-move)
HPX_ASSERT(errors.empty());
Comment thread
hkaiser marked this conversation as resolved.
Resolved
// handle_remote_exceptions populates errors for non-bad_alloc
// failures; bad_alloc is rethrown from call() above. Assert the
// postcondition, then propagate as exception_list.
HPX_ASSERT(!errors.empty());
throw exception_list(HPX_MOVE(errors));
}
return f.get();
Expand Down
Loading
Loading