LCOV - code coverage report
Current view: top level - coll_communicator_mgr/api_c_adpt - coll_comm_c_adpt.cc (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 7 7
Test Date: 2026-08-18 17:47:01 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              : 
      11              : #include "coll_comm_c_adpt.h"
      12              : #include "coll_comm_mgr.h"
      13              : 
      14              : using namespace hccl;
      15              : 
      16              : /**
      17              :  * @note 职责:集合通信的通信域管理的C接口的C到C++适配
      18              :  */
      19            3 : HcclResult HcclCommGetStatus(const char* commId, HcclCommStatus* status)
      20              : {
      21            3 :     CHK_PTR_NULL(commId);
      22            3 :     CHK_PTR_NULL(status);
      23            2 :     HcclComm comm = nullptr;
      24              :     // 公共流程, 需要同时获取单算子和图模式的通信域
      25            2 :     CHK_RET(HcomGetCommHandleByGroup(commId, &comm));
      26            2 :     CHK_PRT_RET(comm == nullptr, HCCL_ERROR("%s hcclComm is nullptr, commId[%s]", __func__, commId), HCCL_E_PTR);
      27            2 :     return static_cast<hccl::hcclComm*>(comm)->GetCommStatus(*status);
      28              : }
        

Generated by: LCOV version 2.0-1