-
Notifications
You must be signed in to change notification settings - Fork 78
Николаев Денис. Технология SEQ-MPI. Нахождение наиболее отличающихся по значению соседних элементов вектора. Вариант 8 #123
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
Update deadlines for task_1 and task_2
…_vec_neighbors' into nikolaev_d_most_dif_vec_neighbors
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #123 +/- ##
==========================================
+ Coverage 94.03% 94.40% +0.37%
==========================================
Files 15 18 +3
Lines 486 554 +68
Branches 181 214 +33
==========================================
+ Hits 457 523 +66
- Partials 29 31 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| // input_data_.resize(kCount_); | ||
|
|
||
| // std::random_device dev; | ||
| // std::mt19937 rng(dev()); | ||
| // std::uniform_int_distribution<int> dist(-10'000, 10'000); | ||
|
|
||
| // for (size_t i = 0; i < kCount_; ++i) { | ||
| // input_data_[i] = dist(rng); | ||
| // } |
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.
Please, clean up the code
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.
Please, remove unused files
| TEST_P(NikolaevDMostDifVecNeighborsFuncTests, FuncTestsRun) { | ||
| ExecuteTest(GetParam()); | ||
| } | ||
|
|
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.
Please, add tests for the corner cases
Описание
Реализован алгоритм нахождение наиболее отличающихся по значению соседних элементов вектора. Разработаны 2 версии - SEQ и MPI. В MPI реализации входной вектор разбивается на непрерывные сегменты, которые рассылаются по процессам. Потом локально каждый процесс обрабатывает свой сегмент данных и возвращает результат на нулевой процесс, где ищется финальный ответ (наиболее отличающаяся пара чисел). Обе реализации успешно проходят функциональные тесты.
Чек-лист
<фамилия>_<первая_буква_имени>_<короткое_название_задачи>clang-formatлокально в моем форке (нет ошибок форматирования)clang-tidyлокально в моем форке (нет предупреждений/ошибок)nesterov_a_vector_sum), а не вmaster