LCOV - code coverage report
Current view: top level - legacy/ascend910/framework/op_base/src - op_base_device.cc (source / functions) Coverage Total Hit
Test: coverage.info Lines: 50.0 % 6 3
Test Date: 2026-08-18 17:47:01 Functions: 50.0 % 2 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 <algorithm>
      12              : #include <future>
      13              : #include <map>
      14              : #include <string>
      15              : #include <hccl/hccl_types.h>
      16              : 
      17              : #include "op_base.h"
      18              : 
      19              : using namespace std;
      20              : using namespace hccl;
      21              : 
      22            1 : HcclResult GetCaptureInfo(
      23              :     [[maybe_unused]] aclrtStream stream, [[maybe_unused]] aclmdlRICaptureStatus& captureStatus,
      24              :     [[maybe_unused]] uint64_t& modelId, [[maybe_unused]] bool& isCapture)
      25              : {
      26            1 :     HCCL_WARNING("[%s]Stream capture does not support!", __func__);
      27            1 :     return HCCL_SUCCESS;
      28              : }
      29              : 
      30            0 : HcclResult HcclAllReduceInner(
      31              :     [[maybe_unused]] void* sendBuf, [[maybe_unused]] void* recvBuf, [[maybe_unused]] uint64_t count,
      32              :     [[maybe_unused]] HcclDataType dataType, [[maybe_unused]] HcclReduceOp op, [[maybe_unused]] HcclComm comm,
      33              :     [[maybe_unused]] aclrtStream stream)
      34              : {
      35            0 :     HCCL_WARNING("[%s]HcclAllReduceInner does not support!", __func__);
      36            0 :     return HCCL_SUCCESS;
      37              : }
        

Generated by: LCOV version 2.0-1