GCC Code Coverage Report


Directory: ./
File: tasks/alekseev_a_custom_reduce/mpi/include/ops_mpi.hpp
Date: 2026-01-27 01:59:34
Exec Total Coverage
Lines: 3 3 100.0%
Functions: 1 1 100.0%
Branches: 1 2 50.0%

Line Branch Exec Source
1 #pragma once
2
3 #include <vector>
4
5 #include "alekseev_a_custom_reduce/common/include/common.hpp"
6 #include "task/include/task.hpp"
7
8 namespace alekseev_a_custom_reduce {
9
10 class AlekseevACustomReduceMPI : public BaseTask {
11 public:
12 static constexpr ppc::task::TypeOfTask GetStaticTypeOfTask() {
13 return ppc::task::TypeOfTask::kMPI;
14 }
15
16
1/2
✓ Branch 1 taken 46 times.
✗ Branch 2 not taken.
46 explicit AlekseevACustomReduceMPI(const InType &in) {
17 SetTypeOfTask(GetStaticTypeOfTask());
18 GetInput() = in;
19 46 GetOutput() = 0.0;
20 46 }
21
22 private:
23 bool ValidationImpl() override;
24 bool PreProcessingImpl() override;
25 bool RunImpl() override;
26 bool PostProcessingImpl() override;
27
28 int world_rank_{0};
29 int world_size_{1};
30
31 int root_{0};
32
33 int local_size_{0};
34 std::vector<double> local_data_;
35 double local_sum_{0.0};
36 };
37
38 } // namespace alekseev_a_custom_reduce
39