LCOV - code coverage report
Current view: top level - base_comm/resources/endpoint_pairs/channels/aicpu/device - aicpu_ts_urma_channel_kernel.cc (source / functions) Coverage Total Hit
Test: coverage.info Lines: 0.0 % 34 0
Test Date: 2026-08-18 17:47:01 Functions: 0.0 % 5 0

            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 <vector>
      12              : #include "aicpu_ts_urma_channel_kernel.h"
      13              : #include "channel_param.h"
      14              : #include "coll_comm_aicpu_kernel_adpt.h"
      15              : #include "aicpu_channel_process.h"
      16              : 
      17              : extern "C" {
      18            0 : __attribute__((visibility("default"))) uint32_t RunAicpuIndOpChannelInitV2(void* args)
      19              : {
      20            0 :     HCCL_RUN_INFO("RunAicpuIndOpChannelInitV2 start.");
      21            0 :     CHK_PTR_NULL(args);
      22            0 :     uint64_t devAddr = *reinterpret_cast<uint64_t*>(args);
      23            0 :     HcclChannelUrmaRes* commParam = reinterpret_cast<HcclChannelUrmaRes*>(devAddr);
      24            0 :     CHK_PTR_NULL(commParam);
      25            0 :     return CollCommAicpuKernelAdptInitChannel(commParam);
      26              : }
      27              : 
      28            0 : __attribute__((visibility("default"))) uint32_t RunAicpuChannelInitV2(void* args)
      29              : {
      30            0 :     HCCL_RUN_INFO("RunAicpuIndOpChannelInitV2Internal start.");
      31            0 :     CHK_PTR_NULL(args);
      32            0 :     uint64_t devAddr = *reinterpret_cast<uint64_t*>(args);
      33            0 :     HcclChannelUrmaRes* commParam = reinterpret_cast<HcclChannelUrmaRes*>(devAddr);
      34            0 :     CHK_PTR_NULL(commParam);
      35            0 :     return AicpuChannelProcess::AicpuChannelInit(commParam);
      36              : }
      37              : 
      38            0 : __attribute__((visibility("default"))) uint32_t RunAicpuChannelInitV3(void* args)
      39              : {
      40            0 :     HCCL_RUN_INFO("RunAicpuChannelInitV3 start.");
      41            0 :     CHK_PTR_NULL(args);
      42            0 :     uint64_t devAddr = *reinterpret_cast<uint64_t*>(args);
      43            0 :     HcommChannelRes* commParam = reinterpret_cast<HcommChannelRes*>(devAddr);
      44            0 :     return AicpuChannelProcess::InitHcommChannelRes(commParam);
      45              : }
      46              : 
      47            0 : __attribute__((visibility("default"))) uint32_t RunAicpuChannelDestroyV2(void* args)
      48              : {
      49            0 :     HCCL_RUN_INFO("RunAicpuIndOpChannelDestroyV2Internal start.");
      50            0 :     CHK_PTR_NULL(args);
      51            0 :     uint64_t devAddr = *reinterpret_cast<uint64_t*>(args);
      52            0 :     HcclChannelUrmaRes* commParam = reinterpret_cast<HcclChannelUrmaRes*>(devAddr);
      53            0 :     CHK_PTR_NULL(commParam);
      54            0 :     return AicpuChannelProcess::AicpuChannelDestroy(commParam);
      55              : }
      56              : 
      57            0 : __attribute__((visibility("default"))) uint32_t RunAicpuIndOpChannelUpdateV2(void* args)
      58              : {
      59            0 :     HCCL_RUN_INFO("RunAicpuIndOpChannelUpdateV2 start.");
      60            0 :     CHK_PTR_NULL(args);
      61            0 :     uint64_t devAddr = *reinterpret_cast<uint64_t*>(args);
      62            0 :     HcclChannelUrmaRes* commParam = reinterpret_cast<HcclChannelUrmaRes*>(devAddr);
      63            0 :     CHK_PTR_NULL(commParam);
      64            0 :     return CollCommAicpuKernelAdptUpdateChannel(commParam);
      65              : }
      66              : }
        

Generated by: LCOV version 2.0-1