LCOV - code coverage report
Current view: top level - legacy/ascend950/framework/communicator/aicpu/one_sided_component - one_sided_component_lite.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 9 9
Test Date: 2026-08-18 17:47:01 Functions: 66.7 % 3 2

            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_ONE_SIDED_COMPONENT_LITE
      12              : #define HCCLV2_ONE_SIDED_COMPONENT_LITE
      13              : 
      14              : #include "dev_type.h"
      15              : #include "connected_link_mgr.h"
      16              : #include "base_config.h"
      17              : #include "coll_operator.h"
      18              : #include "coll_alg_component.h"
      19              : #include "rmt_data_buffer_mgr.h"
      20              : 
      21              : namespace Hccl {
      22              : 
      23              : class OneSidedComponentLite {
      24              : public:
      25            2 :     OneSidedComponentLite(
      26              :         RankId myRank, u32 rankSize, DevType devType, u64 scratchBufferSize, ConnectedLinkMgr* linkMgr,
      27              :         RmtDataBufferMgr* rmaDataBufferMgr)
      28            2 :         : myRank_(myRank),
      29            2 :           rankSize_(rankSize),
      30            2 :           devType_(devType),
      31            2 :           scratchBufferSize_(scratchBufferSize),
      32            2 :           linkMgr_(linkMgr),
      33            2 :           rmaDataBufferMgr_(rmaDataBufferMgr)
      34            2 :     {}
      35            2 :     virtual ~OneSidedComponentLite() = default;
      36              : 
      37              :     virtual HcclResult Orchestrate(const HcclAicpuOpLite& op, InsQuePtr queue);
      38              : 
      39              : protected:
      40              :     u32 myRank_ = INVALID_RANKID;
      41              :     u32 rankSize_ = 0;
      42              :     DevType devType_ = DevType::DEV_TYPE_NOSOC;
      43              :     u64 scratchBufferSize_ = 0;
      44              :     ConnectedLinkMgr* linkMgr_ = nullptr;
      45              :     RmtDataBufferMgr* rmaDataBufferMgr_{nullptr};
      46              : };
      47              : 
      48              : using OneSidedComponentLitePtr = std::shared_ptr<OneSidedComponentLite>;
      49              : } // namespace Hccl
      50              : #endif
        

Generated by: LCOV version 2.0-1