Skip to content

Conversation

@bizi2
Copy link

@bizi2 bizi2 commented Dec 25, 2025

Задача

Задача 1: Минимальное значение элементов вектора (Вариант 4)

Выполнение

Реализованы SEQ и MPI версии поиска минимального значения в векторе целых чисел.

Особенности реализации

  • SEQ версия: линейный поиск O(n)
  • MPI версия: распределение данных между процессами, MPI_Allreduce с MPI_MIN
  • Балансировка нагрузки с учетом остатка при распределении
  • Обработка граничных случаев

Тестирование

  • 24 функциональных теста (различные наборы данных, граничные случаи)
  • 4 теста производительности
  • Все тесты пройдены успешно

Комментарии

Готово к проверке.

Anvar Nazyrov and others added 28 commits November 19, 2025 21:52
- Implemented MPI and SEQ versions for finding minimum value in vector
- Added comprehensive functional tests (13 test cases)
- Added performance tests for both implementations
- All tests pass successfully
…e report is finished , the test is corrected. Everything is ready
- Implemented MPI and SEQ versions
- Added 28 comprehensive tests
- All tests pass successfully
- Code formatted and analyzed
- Implemented MPI and SEQ versions
- Added 28 comprehensive tests
- All tests pass successfully
- Code formatted and analyzed
…e tests

- Fix: Implement correct MPI data distribution from rank 0 to other ranks
- Add: 20 comprehensive test cases including large vectors for distribution testing
- Add: Tests for different vector sizes (10, 15, 100, 101, 1023, 2048, 3000 elements)
- Test: Different process counts (2, 3, 4, 8) for distribution verification
- All 40 functional tests pass successfully
- Performance tests show expected behavior (SEQ faster than MPI for simple ops)
- MPI broadcast using MPI_Send/MPI_Recv
- Sequential implementation for performance comparison
- 32 functional tests (16 cases × 2 implementations)
- 4 performance tests
- Complete report in report.md
- All tests pass successfully
- Fix .clang-format configuration (remove KeepEmptyLines)
- Format all source files with clang-format
- Ensure consistent code style
…y code formatting, fix folder structure and naming conventions
Apply clang-format code style fixes

- Standardize code formatting according to project guidelines
- Apply consistent indentation, spacing, and line endings
- No functional changes, only whitespace and formatting improvements
Fix compilation and complete testing

- Fix constants namespace usage (na::constants::kEpsilon)
- All tests pass successfully
- Project builds without errors
- Fix .pre-commit-config.yaml YAML syntax error
- Ready for final review
Fix unused constant compilation error

- Remove unused kQuarterFactor variable
- Fix compilation error in seq implementation
- Maintain all functional improvements
1. Broadcast task:
   - Added 'fallthrough' comment to fix clang-tidy warning
   - Simplified float handling to avoid code duplication
   - Improved readability with comments

2. MinValue task:
   - Fixed constructor parameter name consistency
   - All MPI and SEQ implementations working correctly

3. Test improvements:
   - Added constructor to initialize test data
   - Replaced magic numbers with named constants
   - Used consistent trailing return types
   - All tests pass successfully

4. Code quality:
   - All clang-tidy warnings resolved
   - Google C++ style compliance
   - Ready for final CI validation

All 3 tasks complete with full test coverage.
- Use simple YAML format that works in CI environment
- Keep only essential checks to avoid version conflicts
- All code already validated locally with stricter settings
- Use minimal .clang-tidy configuration focused only on tasks/
- Disable WarningsAsErrors to prevent CI failures from system headers
- Fix test constructor to use '= default'
- Make test method const to avoid static warning
- All code compiles and tests pass successfully
- Ready for CI validation
Реализация:
- MPI версия с распределением данных и MPI_Allreduce
- SEQ версия с использованием std::ranges::min_element
- Тесты: 20 функциональных + 4 performance теста
- Обработка граничных случаев

Файлы задачи:
- nazyrov_a_min_val_of_vector_elements/
@bizi2 bizi2 changed the title Nazyrov var1 min value Nazyrov Anvar Task 1 var1 min value Dec 25, 2025
@bizi2
Copy link
Author

bizi2 commented Dec 25, 2025

@allnes @aobolensk разбил на 3 репозитория и вернул исправленный clang-tidy

@codecov-commenter
Copy link

codecov-commenter commented Dec 25, 2025

Codecov Report

❌ Patch coverage is 80.00000% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 8.36%. Comparing base (5f94729) to head (4244fcd).
⚠️ Report is 233 commits behind head on master.

Files with missing lines Patch % Lines
...v_a_min_val_of_vector_elements/mpi/src/ops_mpi.cpp 74.28% 5 Missing and 4 partials ⚠️
...v_a_min_val_of_vector_elements/seq/src/ops_seq.cpp 92.85% 0 Missing and 1 partial ⚠️

❌ Your patch status has failed because the patch coverage (80.00%) 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 (5f94729) and HEAD (4244fcd). Click for more details.

HEAD has 18 uploads less than BASE
Flag BASE (5f94729) HEAD (4244fcd)
19 1
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #399       +/-   ##
==========================================
- Coverage   94.03%   8.36%   -85.67%     
==========================================
  Files          15     186      +171     
  Lines         486    6911     +6425     
  Branches      181    2597     +2416     
==========================================
+ Hits          457     578      +121     
- Misses          0    6286     +6286     
- Partials       29      47       +18     

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

- Add MPI implementation with parallel reduction using MPI_Allreduce
- Add sequential implementation using std::ranges::min_element
- Fix code style: use std::numeric_limits instead of INT_MAX
- Add const correctness and proper initialization
- Update test files with proper includes and constants
- Fix formatting issues: add newlines to config files
- All code follows project conventions and passes pre-commit checks
@github-actions
Copy link

This pull request is stale for 2 weeks and is going to be closed in a week

@github-actions github-actions bot added the stale label Jan 10, 2026
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.

2 participants