LCOV - code coverage report
Current view: top level - legacy/ascend910/framework/device/framework - aicpu_share_data_manager.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 2 2
Test Date: 2026-08-18 17:47:01 Functions: 100.0 % 2 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 AICPU_SHARE_DATA_MANAGER
      12              : #define AICPU_SHARE_DATA_MANAGER
      13              : 
      14              : #include "hccl/base.h"
      15              : #include "aicpu_operator_pub.h"
      16              : #include "coll_alg_param.h"
      17              : 
      18              : namespace hccl {
      19              : 
      20              : // 管理aicpu和custom进程的公共数据
      21              : class AicpuShareDataManager {
      22              : public:
      23           33 :     AicpuShareDataManager() {};
      24           32 :     ~AicpuShareDataManager() {};
      25              :     HcclResult Init(u64 addr, u64 size);
      26              : 
      27              :     // taskException
      28              :     u32 GetOpRingBufferIdx();
      29              :     HcclResult RecordOpInfo(const std::string& newTag, OpParam& opParam, u32 opExecIndex, u32 userRank, bool isCustom);
      30              :     const AicpuOpInfo* GetAicpuOpInfo(u32 opRingBufferIdx);
      31              : 
      32              : private:
      33              :     AicpuCustomParam* aicpuCustomParam_ = nullptr;
      34              : };
      35              : } // namespace hccl
      36              : #endif
        

Generated by: LCOV version 2.0-1