LCOV - code coverage report
Current view: top level - legacy/ascend950/framework/service - ins_rules.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 4 4
Test Date: 2026-07-28 12:11:00 Functions: 52.3 % 44 23

            Line data    Source code
       1              : /**
       2              :  * Copyright (c) 2025 Huawei Technologies Co., Ltd.
       3              :  * This program is free software, you can redistribute it and/or modify it under the terms and conditions of
       4              :  * CANN Open Software License Agreement Version 2.0 (the "License").
       5              :  * Please refer to the License for details. You may not use this file except in compliance with the License.
       6              :  * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
       7              :  * INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
       8              :  * See LICENSE in the root of the software repository for the full text of the License.
       9              :  */
      10              : 
      11              : #ifndef HCCLV2_INS_RULES_H
      12              : #define HCCLV2_INS_RULES_H
      13              : 
      14              : #include "communicator_impl.h"
      15              : #include "instruction.h"
      16              : #include "task.h"
      17              : #include "ccu_ins.h"
      18              : #include "ccu_ins_group.h"
      19              : #include "aicpu_ins.h"
      20              : #include "aiv/aiv_ins/aiv_ins.h"
      21              : 
      22              : namespace Hccl {
      23              : 
      24              : void Interpret(const InsLocalPostTo &insLocalPostTo, CommunicatorImpl &comm, const Stream &stream, const OpTaskConfig &taskConfig);
      25              : 
      26              : void Interpret(const InsLocalWaitFrom &insLocalWaitFrom, CommunicatorImpl &comm, const Stream &stream, const OpTaskConfig &taskConfig);
      27              : 
      28              : void Interpret(const InsLocalWaitGroup &insLocalWaitGroup, CommunicatorImpl &comm, const Stream &stream, const OpTaskConfig &taskConfig);
      29              : 
      30              : void Interpret(const InsLocalBcastPost &insLocalBcastPost, CommunicatorImpl &comm, const Stream &stream, const OpTaskConfig &taskConfig);
      31              : 
      32              : void Interpret(const InsLocalCopy &insLocalCopy, CommunicatorImpl &comm, const Stream &stream, const OpTaskConfig &taskConfig);
      33              : 
      34              : void Interpret(const InsLocalReduce &insLocalReduce, CommunicatorImpl &comm, const Stream &stream, const OpTaskConfig &taskConfig);
      35              : 
      36              : void Interpret(const InsPostReady &insPostReady, CommunicatorImpl &comm, const Stream &stream, const OpTaskConfig &taskConfig);
      37              : 
      38              : void Interpret(const InsWaitReady &insWaitReady, CommunicatorImpl &comm, const Stream &stream, const OpTaskConfig &taskConfig);
      39              : 
      40              : void Interpret(const InsPostFin &insPostFin, CommunicatorImpl &comm, const Stream &stream, const OpTaskConfig &taskConfig);
      41              : 
      42              : void Interpret(const InsWaitFin &insWaitFin, CommunicatorImpl &comm, const Stream &stream, const OpTaskConfig &taskConfig);
      43              : 
      44              : void Interpret(const InsWaitGroupFin &insWaitGroupFin, CommunicatorImpl &comm, const Stream &stream, const OpTaskConfig &taskConfig);
      45              : 
      46              : void Interpret(const InsPostFinAck &insPostFinAck, CommunicatorImpl &comm, const Stream &stream, const OpTaskConfig &taskConfig);
      47              : 
      48              : void Interpret(const InsWaitFinAck &insWaitFinAck, CommunicatorImpl &comm, const Stream &stream, const OpTaskConfig &taskConfig);
      49              : 
      50              : void Interpret(const InsRead &insRead, CommunicatorImpl &comm, const Stream &stream, const OpTaskConfig &taskConfig);
      51              : 
      52              : void Interpret(const InsWrite &insWrite, CommunicatorImpl &comm, const Stream &stream, const OpTaskConfig &taskConfig);
      53              : 
      54              : void Interpret(const InsReadReduce &insReadReduce, CommunicatorImpl &comm, const Stream &stream, const OpTaskConfig &taskConfig);
      55              : 
      56              : void Interpret(const InsWriteReduce &insWriteReduce, CommunicatorImpl &comm, const Stream &stream, const OpTaskConfig &taskConfig);
      57              : 
      58              : void Interpret(const InsWriteWithFin &insWriteWithFin, CommunicatorImpl &comm, const Stream &stream, const OpTaskConfig &taskConfig);
      59              : 
      60              : void Interpret(const InsWriteReduceWithFin &insWriteReduceWithFin, CommunicatorImpl &comm, const Stream &stream, const OpTaskConfig &taskConfig);
      61              : 
      62              : void Interpret(const CcuInstruction &ccuInstruction, CommunicatorImpl &comm, const Stream &stream, const OpTaskConfig &taskConfig);
      63              : 
      64              : void Interpret(const AicpuInstruction &aicpuInstruction, CommunicatorImpl &comm, const Stream &stream, const OpTaskConfig &taskConfig);
      65              : 
      66              : void Interpret(const AivInstruction &aivInstruction, const CommunicatorImpl &comm, const Stream &stream, const OpTaskConfig &taskConfig);
      67              : 
      68          220 : template <typename INS_TYPE> Interpreter::InsRule GetInsRule()
      69              : {
      70          232 :     return [](const Instruction &ins, CommunicatorImpl &comm, const Stream &stream, const OpTaskConfig &taskConfig) {
      71            6 :         Interpret(static_cast<const INS_TYPE &>(ins), comm, stream, taskConfig);
      72          220 :     };
      73              : }
      74              : 
      75              : } // namespace Hccl
      76              : 
      77              : #endif // HCCLV2_INS_RULES_H
        

Generated by: LCOV version 2.0-1