| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #include "guseva_crs/omp/include/ops_omp.hpp" | ||
| 2 | |||
| 3 | #include "guseva_crs/common/include/common.hpp" | ||
| 4 | #include "guseva_crs/omp/include/multiplier_omp.hpp" | ||
| 5 | |||
| 6 | namespace guseva_crs { | ||
| 7 | |||
| 8 |
1/2✓ Branch 2 taken 24 times.
✗ Branch 3 not taken.
|
24 | GusevaCRSMatMulOmp::GusevaCRSMatMulOmp(const InType &in) { |
| 9 | SetTypeOfTask(GetStaticTypeOfTask()); | ||
| 10 | GetInput() = in; | ||
| 11 | GetOutput(); | ||
| 12 | 24 | } | |
| 13 | |||
| 14 | 24 | bool GusevaCRSMatMulOmp::ValidationImpl() { | |
| 15 | const auto &[a, b] = GetInput(); | ||
| 16 | 24 | return a.ncols == b.nrows; | |
| 17 | } | ||
| 18 | |||
| 19 | 24 | bool GusevaCRSMatMulOmp::PreProcessingImpl() { | |
| 20 | 24 | return true; | |
| 21 | } | ||
| 22 | |||
| 23 | 24 | bool GusevaCRSMatMulOmp::RunImpl() { | |
| 24 | const auto &[a, b] = GetInput(); | ||
| 25 | 24 | auto mult = MultiplierOmp(); | |
| 26 | 24 | GetOutput() = mult.Multiply(a, b); | |
| 27 | 24 | return true; | |
| 28 | } | ||
| 29 | |||
| 30 | 24 | bool GusevaCRSMatMulOmp::PostProcessingImpl() { | |
| 31 | 24 | return true; | |
| 32 | } | ||
| 33 | |||
| 34 | } // namespace guseva_crs | ||
| 35 |