Волков Алексей. Технология MPI, SEQ. Поразрядная сортировка для вещественных чисел (тип double) с четно-нечетным слиянием Бэтчера. Вариант 21#290
Open
fleezeex wants to merge 5 commits intolearning-process:masterfrom
Conversation
Codecov Report❌ Patch coverage is ❌ Your patch status has failed because the patch coverage (84.35%) is below the target coverage (95.00%). You can increase the patch coverage or adjust the target coverage.
Additional details and impacted files@@ Coverage Diff @@
## master #290 +/- ##
===========================================
- Coverage 94.03% 16.57% -77.46%
===========================================
Files 15 189 +174
Lines 486 7343 +6857
Branches 181 2860 +2679
===========================================
+ Hits 457 1217 +760
- Misses 0 6040 +6040
- Partials 29 86 +57 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
aobolensk
requested changes
Jan 3, 2026
| MPI_Sendrecv(local_vec.data(), counts[rank], MPI_DOUBLE, neighbor, 0, buffer_recv.data(), counts[neighbor], | ||
| MPI_DOUBLE, neighbor, 0, MPI_COMM_WORLD, MPI_STATUS_IGNORE); | ||
|
|
||
| std::merge(local_vec.begin(), local_vec.end(), buffer_recv.begin(), buffer_recv.begin() + counts[neighbor], |
Member
There was a problem hiding this comment.
You were supposed to implement Batcher merge, not use the ordinary one
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.
Программа решает задачу распределенной сортировки вектора double с использованием MPI. Реализован гибридный подход: геометрический параллелизм с локальной поразрядной сортировкой (сложность
O(N)) и параллельным слиянием. Ключевой особенностью является механизм DoubleToOrderedInt, позволяющий применять целочисленные алгоритмы к формату IEEE 754, и использование топологии Бэтчера для минимизации транзакций при обмене данными между процессами. Реализованы последовательная (SEQ) и параллельная (MPI) версии с покрытием unit-тестами.
Чек-лист
<фамилия>_<первая_буква_имени>_<короткое_название_задачи>clang-formatлокально в моем форке (нет ошибок форматирования)clang-tidyлокально в моем форке (нет предупреждений/ошибок)nesterov_a_vector_sum), а не вmaster