-
Notifications
You must be signed in to change notification settings - Fork 78
Егорова Лариса. Технология SEQ-MPI. Нахождение максимальных значений по столбцам матрицы. Вариант 16. #89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #89 +/- ##
==========================================
+ Coverage 94.03% 94.73% +0.70%
==========================================
Files 15 17 +2
Lines 486 589 +103
Branches 181 224 +43
==========================================
+ Hits 457 558 +101
- Misses 0 1 +1
- Partials 29 30 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| MPI_Bcast(&rows, 1, MPI_INT, 0, MPI_COMM_WORLD); | ||
| MPI_Bcast(&cols, 1, MPI_INT, 0, MPI_COMM_WORLD); | ||
|
|
||
| std::vector<int> flat_matrix = CreateAndBroadcastMatrix(rank, rows, cols); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not broadcast the whole matrix, split it on rank 0 and sent by pieces to other ranks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Исправила
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Забыла удалить, этот файл действительно не нужен. Удалено
Описание
Разработаны последовательная и параллельная версии программы для поиска максимальных чисел в каждом столбце матрицы. Обычная версия последовательно проходит все столбцы и находит в них максимумы. Параллельная версия использует несколько процессов: каждый процесс получает свои столбцы, находит в них максимумы, а потом все результаты собираются вместе.
Было проведено функциональное производительное тестирования на матрицах 5000×5000 и 10000×10000. Наилучшая производительность достигнута при использовании 2 процессов MPI.
Чек-лист
<фамилия>_<первая_буква_имени>_<короткое_название_задачи>clang-formatлокально в моем форке (нет ошибок форматирования)clang-tidyлокально в моем форке (нет предупреждений/ошибок)nesterov_a_vector_sum), а не вmaster