GCC Code Coverage Report


Directory: ./
File: tasks/kopilov_d_shell_merge/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: 2 4 50.0%

Line Branch Exec Source
1 #pragma once
2
3 #include <vector>
4
5 #include "kopilov_d_shell_merge/common/include/common.hpp"
6 #include "task/include/task.hpp"
7
8 namespace kopilov_d_shell_merge {
9
10 class KopilovDShellMergeMPI : 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 14 times.
✗ Branch 2 not taken.
14 explicit KopilovDShellMergeMPI(const InType &in) {
17 SetTypeOfTask(GetStaticTypeOfTask());
18
1/2
✓ Branch 1 taken 14 times.
✗ Branch 2 not taken.
14 GetInput() = in;
19 14 }
20
21 private:
22 bool ValidationImpl() override;
23 bool PreProcessingImpl() override;
24 bool RunImpl() override;
25 bool PostProcessingImpl() override;
26
27 std::vector<int> local_;
28 std::vector<int> counts_;
29 std::vector<int> displs_;
30 int world_rank_{0};
31 int world_size_{1};
32 };
33
34 } // namespace kopilov_d_shell_merge
35