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