Skip to content

Фролова Софья. Технология SEQ-MPI. Сумма элементов матрицы. Вариант 10.#72

Merged
aobolensk merged 66 commits intolearning-process:masterfrom
cuttty:frolova_s_sum_elem_matrix
Jan 3, 2026
Merged

Фролова Софья. Технология SEQ-MPI. Сумма элементов матрицы. Вариант 10.#72
aobolensk merged 66 commits intolearning-process:masterfrom
cuttty:frolova_s_sum_elem_matrix

Conversation

@cuttty
Copy link
Copy Markdown
Contributor

@cuttty cuttty commented Nov 20, 2025

Описание:

Задача: Подсчёт суммы элементов матрицы.
Вариант: 10
Технология: SEQ-MPI
Описание:

MPI:
Вычисляем базовое количество строк на процесс, а остаток строк распределяем по одному на первые процессы. Каждый процесс получает свой диапазон строк. Используем локальное суммирование - каждый процесс суммирует элементы в своих строках. Далее все локальные суммы собираются на процессе 0, происходит их суммирование, и
процесс номер 0 записывает финальную сумму в выходные данные.

SEQ:
Проходим по каждой строке матрицы, вычисляем ее сумму и накапливаем все суммы строк.

Чек-лист

  • Статус CI: Все CI-задачи (сборка, тесты, генерация отчёта) успешно проходят на моей ветке в моем форке;

  • Директория и именование задачи: Я создала директорию с именем <фамилия><первая_буква_имени><короткое_название_задачи>;

  • Полное описание задачи: Полное описание задачи находится в теле pull request;

  • clang-format: Мои изменения успешно проходят clang-format локально в моем форке;

  • clang-tidy: Мои изменения успешно проходят clang-tidy локально в моем форке;

  • Функциональные тесты: Все функциональные тесты успешно проходят локально на моей машине;

  • Тесты производительности: Все тесты производительности успешно проходят локально на моей машине;

  • Ветка: Я работаю в ветке, названной точно так же, как директория моей задачи, а именно frolova_s_sum_elem_matrix;

  • Правдивое содержание: Я подтверждаю, что информация, указанная в этом pull request, является точной и достоверной.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Nov 25, 2025

Codecov Report

❌ Patch coverage is 89.47368% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 13.59%. Comparing base (92b24d3) to head (d9db44b).
⚠️ Report is 88 commits behind head on master.

Files with missing lines Patch % Lines
...asks/frolova_s_sum_elem_matrix/mpi/src/ops_mpi.cpp 86.88% 5 Missing and 3 partials ⚠️

❌ Your patch status has failed because the patch coverage (89.47%) is below the target coverage (95.00%). You can increase the patch coverage or adjust the target coverage.

❗ There is a different number of reports uploaded between BASE (92b24d3) and HEAD (d9db44b). Click for more details.

HEAD has 18 uploads less than BASE
Flag BASE (92b24d3) HEAD (d9db44b)
19 1
Additional details and impacted files
@@             Coverage Diff             @@
##           master      #72       +/-   ##
===========================================
- Coverage   94.03%   13.59%   -80.44%     
===========================================
  Files          15      186      +171     
  Lines         486     7030     +6544     
  Branches      181     2725     +2544     
===========================================
+ Hits          457      956      +499     
- Misses          0     6018     +6018     
- Partials       29       56       +27     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please, remove unused file

Comment thread CMakeLists.txt Outdated
Comment on lines +3 to +4
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please, do not modify common files.

return true;
}

bool FrolovaSSumElemMatrixMPI::RunImpl() {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You should split the data on the rank 0 and send only the pieces of data to other ranks

Comment on lines +10 to +13
#ifdef __GNUC__
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wnull-dereference"
#endif
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

what was the reason for that?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Без этих строчек в моем случае возникает ошибки, причем не в коде, а в реализации std::vector из стандартной библиотеки

Comment on lines +11 to +14
#ifdef __GNUC__
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wnull-dereference"
#endif
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Same, what was the reason for this change ?

Comment on lines +125 to +127
| 1000×1000 | 4 | 0.035 | 0.018 | 1.94× |
| 1000×1000 | 2 | 0.035 | 0.024 | 1.45× |
| 1000×1000 | 1 | 0.035 | 0.035 | 1.00× |
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

просьба провести эксперимент еще для одной размерности матрицы (к примеру 2000х2000)

@aobolensk aobolensk merged commit 9350a72 into learning-process:master Jan 3, 2026
41 checks passed
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.

4 participants