Skip to content

Рычкова Диана. Технология SEQ-MPI. Сумма элементов матрицы по столбцам. Вариант 12#70

Merged
aobolensk merged 8 commits intolearning-process:masterfrom
DianaRych:Lab1
Dec 16, 2025
Merged

Рычкова Диана. Технология SEQ-MPI. Сумма элементов матрицы по столбцам. Вариант 12#70
aobolensk merged 8 commits intolearning-process:masterfrom
DianaRych:Lab1

Conversation

@DianaRych
Copy link
Copy Markdown
Contributor

Задача вычисления сумм по столбцам матрицы. На вход подается матрица целых чисел, на выходе - вектор сумм каждого столбца. Реализованы две версии: последовательная (SEQ) и параллельная (MPI). SEQ версия проходит по всем элементам матрицы, суммируя значения столбцов. MPI версия распределяет строки матрицы между процессами, каждый процесс вычисляет частичные суммы для своих строк, затем результаты собираются на процессе 0. Обрабатываются все случаи включая пустые матрицы, матрицы с отрицательными числами и различные размеры матриц.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Nov 19, 2025

Codecov Report

❌ Patch coverage is 82.56881% with 19 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.38%. Comparing base (92b24d3) to head (d3fa321).
⚠️ Report is 83 commits behind head on master.

Files with missing lines Patch % Lines
.../rychkova_d_sum_matrix_columns/mpi/src/ops_mpi.cpp 87.95% 4 Missing and 6 partials ⚠️
.../rychkova_d_sum_matrix_columns/seq/src/ops_seq.cpp 70.83% 2 Missing and 5 partials ⚠️
...hkova_d_sum_matrix_columns/mpi/include/ops_mpi.hpp 0.00% 1 Missing ⚠️
...hkova_d_sum_matrix_columns/seq/include/ops_seq.hpp 0.00% 1 Missing ⚠️

❌ Your patch status has failed because the patch coverage (82.56%) 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 (d3fa321). Click for more details.

HEAD has 18 uploads less than BASE
Flag BASE (92b24d3) HEAD (d3fa321)
19 1
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #70      +/-   ##
==========================================
- Coverage   94.03%   88.38%   -5.65%     
==========================================
  Files          15      180     +165     
  Lines         486     6793    +6307     
  Branches      181     2640    +2459     
==========================================
+ Hits          457     6004    +5547     
- Misses          0      595     +595     
- Partials       29      194     +165     

☔ 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.

Comment thread tasks/rychkova_d_sum_matrix_columns/mpi/src/ops_mpi.cpp
Comment thread tasks/rychkova_d_sum_matrix_columns/tests/performance/main.cpp
Comment thread tasks/rychkova_d_sum_matrix_columns/mpi/src/ops_mpi.cpp
Comment thread tasks/rychkova_d_sum_matrix_columns/tests/functional/main.cpp
Comment thread tasks/rychkova_d_sum_matrix_columns/mpi/src/ops_mpi.cpp Outdated
Comment thread tasks/rychkova_d_sum_matrix_columns/mpi/src/ops_mpi.cpp Outdated
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.

Report is empty

TEST_P(RychkovaRunFuncTestsMatrixColumns, SumMatrixColumnsTest) {
ExecuteTest(GetParam());
}

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, add more functional tests for the corner cases

Copy link
Copy Markdown
Member

@aobolensk aobolensk left a comment

Choose a reason for hiding this comment

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

Now report has completely disappeared

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 files

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.

Done, the report has been added

@aobolensk aobolensk merged commit ce0edec into learning-process:master Dec 16, 2025
17 checks passed
AleksndrSakharov pushed a commit to AleksndrSakharov/ppc-2025-processes-informatics that referenced this pull request Dec 16, 2025
…м. Вариант 12 (learning-process#70)

Задача вычисления сумм по столбцам матрицы. На вход подается матрица
целых чисел, на выходе - вектор сумм каждого столбца. Реализованы две
версии: последовательная (SEQ) и параллельная (MPI). SEQ версия проходит
по всем элементам матрицы, суммируя значения столбцов. MPI версия
распределяет строки матрицы между процессами, каждый процесс вычисляет
частичные суммы для своих строк, затем результаты собираются на процессе
0. Обрабатываются все случаи включая пустые матрицы, матрицы с
отрицательными числами и различные размеры матриц.

---------

Co-authored-by: Hymera <hymerared@gmail.com>
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.

5 participants