LCOV - code coverage report
Current view: top level - legacy/ascend910/algorithm/impl/coll_executor/coll_scatter - coll_scatter_single_rank_executor.cc (source / functions) Coverage Total Hit
Test: coverage.info Lines: 0.0 % 16 0
Test Date: 2026-08-04 10:52:23 Functions: 0.0 % 2 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 "coll_scatter_single_rank_executor.h"
      12              : 
      13              : namespace hccl {
      14            0 : CollScatterSingleRankExecutor::CollScatterSingleRankExecutor(const HcclDispatcher dispatcher,
      15            0 :                                 std::unique_ptr<TopoMatcher> &topoMatcher)
      16            0 :     : CollScatterExecutor(dispatcher, topoMatcher)
      17              : {
      18            0 : }
      19              : 
      20            0 : HcclResult CollScatterSingleRankExecutor::KernelRun(const OpParam &param, ExecMem &execMem)
      21              : {
      22            0 :     HCCL_CONFIG_INFO(HCCL_ALG, "[CollScatterSingleRankExecutor][KernelRun] starts.");
      23            0 :     u64 totalSize = execMem.count * SIZE_TABLE[param.DataDes.dataType];
      24            0 :     bool hugeData = IsHugeData(totalSize); // override
      25            0 :     auto opMeta = HcclOpMetaInfo::GetOneForScatter( param.root, hugeData);
      26            0 :     CHK_RET(InitTask(dispatcher_, const_cast<Stream&>(param.stream), opMeta.isEnableCache, opMeta.GetCacheKey()));
      27            0 :     DeviceMem srcMem(execMem.inputPtr, totalSize);
      28            0 :     DeviceMem dstMem(execMem.outputPtr, totalSize);
      29            0 :     CHK_RET(HcclD2DMemcpyAsync(dispatcher_, dstMem, srcMem, const_cast<Stream &>(param.stream)));
      30            0 :     CHK_RET(LaunchTask(dispatcher_, const_cast<Stream &>(param.stream)));
      31            0 :     return HCCL_SUCCESS;
      32            0 : }
      33              : 
      34              : REGISTER_EXEC("ScatterSingleExecutor", ScatterSingleRank, CollScatterSingleRankExecutor);
      35              : 
      36              : } // namespace hccl
        

Generated by: LCOV version 2.0-1