LCOV - code coverage report
Current view: top level - legacy/ascend950/interface - aicpu_ts_thread_interface.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_TS_THREAD_INTERFACE_H
      12              : #define AICPU_TS_THREAD_INTERFACE_H
      13              : 
      14              : #include "hccl_types.h"
      15              : #include "stream_lite.h"
      16              : 
      17              : namespace Hccl {
      18              : 
      19              : class IAicpuTsThread {
      20              : public:
      21              :     IAicpuTsThread(uint32_t id, uint32_t sqIds, uint32_t phyId, uint32_t logicCqids);
      22              : 
      23              :     ~IAicpuTsThread();
      24              : 
      25              :     void LaunchTask() const;
      26              : 
      27              :     void TryLaunchTask() const;
      28              : 
      29              :     HcclResult NotifyWait(uint32_t notifyId) const;
      30              : 
      31              :     HcclResult NotifyWait(uint32_t notifyId, uint32_t timeout) const;
      32              : 
      33              :     HcclResult NotifyRecordLoc(uint32_t notifyId) const;
      34              : 
      35              :     HcclResult SdmaCopy(uint64_t dstAddr, uint64_t srcAddr, uint64_t sizeByte) const;
      36              : 
      37              :     HcclResult
      38              :     SdmaReduce(uint64_t dstAddr, uint64_t srcAddr, uint64_t sizeByte, uint32_t dataTypeRaw, uint32_t reduceOpRaw) const;
      39              : 
      40           26 :     inline void* GetStreamLitePtr() const { return streamLiteVoidPtr_; }
      41              : 
      42            1 :     inline uint32_t GetSqId() const { return static_cast<StreamLite*>(streamLiteVoidPtr_)->GetSqId(); }
      43              : 
      44              : private:
      45              :     void* streamLiteVoidPtr_{nullptr};
      46              : };
      47              : 
      48              : } // namespace Hccl
      49              : 
      50              : #endif
        

Generated by: LCOV version 2.0-1