LCOV - code coverage report
Current view: top level - coll_communicator_mgr/dfx/taskException/common - res_TE.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 21.1 % 19 4
Test Date: 2026-08-17 10:19:35 Functions: 100.0 % 1 1

            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              : #ifndef RES_TE_H
      11              : #define RES_TE_H
      12              : 
      13              : #include <map>
      14              : #include <string>
      15              : #include "res_pub.h"
      16              : 
      17              : namespace Hccl {
      18              : 
      19            2 : inline const std::map<u8, std::string>& GetTaskConciseNameMap()
      20              : {
      21              :     static const std::map<u8, std::string> taskConciseNameMap = {
      22            0 :         {static_cast<u8>(TaskParamTypeVal::TASK_SDMA), "M"},
      23            0 :         {static_cast<u8>(TaskParamTypeVal::TASK_RDMA), "RS"},
      24            0 :         {static_cast<u8>(TaskParamTypeVal::TASK_SEND_PAYLOAD), "SP"},
      25            0 :         {static_cast<u8>(TaskParamTypeVal::TASK_REDUCE_INLINE), "IR"},
      26            0 :         {static_cast<u8>(TaskParamTypeVal::TASK_UB_REDUCE_INLINE), "IR"},
      27            0 :         {static_cast<u8>(TaskParamTypeVal::TASK_REDUCE_TBE), "R"},
      28            0 :         {static_cast<u8>(TaskParamTypeVal::TASK_UB), "WorR"},
      29            0 :         {static_cast<u8>(TaskParamTypeVal::TASK_NOTIFY_RECORD), "NR"},
      30            0 :         {static_cast<u8>(TaskParamTypeVal::TASK_NOTIFY_WAIT), "NW"},
      31            0 :         {static_cast<u8>(TaskParamTypeVal::TASK_SEND_NOTIFY), "SN"},
      32            0 :         {static_cast<u8>(TaskParamTypeVal::TASK_WRITE_WITH_NOTIFY), "WN"},
      33            0 :         {static_cast<u8>(TaskParamTypeVal::TASK_UB_INLINE_WRITE), "IW"},
      34            0 :         {static_cast<u8>(TaskParamTypeVal::TASK_WRITE_REDUCE_WITH_NOTIFY), "WRN"},
      35            0 :         {static_cast<u8>(TaskParamTypeVal::TASK_CCU), "CCU"},
      36            0 :         {static_cast<u8>(TaskParamTypeVal::TASK_AICPU_KERNEL), "AIK"},
      37           19 :     };
      38            2 :     return taskConciseNameMap;
      39            1 : }
      40              : 
      41              : } // namespace Hccl
      42              : 
      43              : #endif
        

Generated by: LCOV version 2.0-1