LCOV - code coverage report
Current view: top level - legacy/ascend950/service/collective/alg/selector - alltoallvc_auto_selector.cc (source / functions) Coverage Total Hit
Test: coverage.info Lines: 0.0 % 8 0
Test Date: 2026-08-04 10:52:23 Functions: 0.0 % 2 0

            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              : #include "alltoallvc_auto_selector.h"
      12              : #include "selector_registry.h"
      13              : #include "coll_operator.h"
      14              : 
      15              : namespace Hccl {
      16              : 
      17            0 : SelectorStatus AlltoAllVCAutoSelector::SelectCcuScheduleAlgo(const TopoInfo &topoInfo,
      18              :                                                              const CollAlgOperator &op,
      19              :                                                              const std::map<OpType,
      20              :                                                              std::vector<HcclAlgoType>> &configAlgMap,
      21              :                                                              std::string &primQueueGenName) const
      22              : {
      23              :     (void)topoInfo;
      24              :     (void)op;
      25              :     (void)configAlgMap;
      26              :     (void)primQueueGenName;
      27            0 :     HCCL_WARNING("[Algo][AllToAllVCAutoSelector] algo is not supported yet for ccu_ms mode, reset to default.");
      28            0 :     return SelectorStatus::NOT_MATCH;
      29              : }
      30              : 
      31            0 : SelectorStatus AlltoAllVCAutoSelector::SelectAicpuAlgo(const TopoInfo &topoInfo,
      32              :                                                       const CollAlgOperator &op,
      33              :                                                       const std::map<OpType, std::vector<HcclAlgoType>> &configAlgMap,
      34              :                                                       std::string &primQueueGenName) const
      35              : {
      36              :     (void)op;
      37              :     (void)configAlgMap;
      38            0 :     HCCL_DEBUG("[AlltoAllVCAutoSelector][%s] start, topoInfo levelNum[%u]", __func__, topoInfo.levelNum);
      39              : 
      40              :     // aiv 直接走打平 mesh
      41            0 :     primQueueGenName = "InsAlltoAllvcMesh";
      42              : 
      43            0 :     HCCL_INFO("[Algo][AlltoAllVCAutoSelector][%s] Algo match [%s]", __func__, primQueueGenName.c_str());
      44            0 :     return SelectorStatus::MATCH;
      45              : }
      46              : 
      47              : REGISTER_SELECTOR_BY_OPTYPE(OpType::ALLTOALLVC, 18, AlltoAllVCAutoSelector);
      48              : } // namespace Hccl
        

Generated by: LCOV version 2.0-1