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 "hccl_aiv.h"
12 :
13 : using namespace std;
14 :
15 : namespace hccl {
16 :
17 0 : HcclResult ReadBinFile(const string& fileName, string& buffer)
18 : {
19 : (void) fileName;
20 : (void) buffer;
21 0 : return HCCL_SUCCESS;
22 : }
23 :
24 : // Kernel注册入口,全局只需要初始化一次
25 0 : HcclResult RegisterKernel(DevType deviceType)
26 : {
27 : (void) deviceType;
28 0 : return HCCL_SUCCESS;
29 : }
30 :
31 0 : HcclResult UnRegisterAivKernel()
32 : {
33 0 : return HCCL_SUCCESS;
34 : }
35 :
36 : // KernelLaunch内部接口
37 0 : HcclResult ExecuteKernelLaunchInner(const AivOpArgs &opArgs, const AivTopoArgs &topoArgs,
38 : const AivResourceArgs &resourceArgs, const AivAlgArgs &algArgs, void* args, u32 argsSize,
39 : AivProfilingInfo& aivProfilingInfo)
40 : {
41 : (void) algArgs;
42 : (void) args;
43 : (void) argsSize;
44 : (void) topoArgs;
45 : (void) aivProfilingInfo;
46 : (void) opArgs;
47 : (void) resourceArgs;
48 0 : return HCCL_SUCCESS;
49 : }
50 :
51 : // Kernel单次调用Launch外部接口
52 0 : HcclResult ExecuteKernelLaunch(const AivOpArgs &opArgs, const AivTopoArgs &topoArgs,
53 : const AivResourceArgs &resourceArgs, const AivAlgArgs &algArgs, AivProfilingInfo& aivProfilingInfo)
54 : {
55 : (void) algArgs;
56 : (void) topoArgs;
57 : (void) aivProfilingInfo;
58 : (void) opArgs;
59 : (void) resourceArgs;
60 0 : return HCCL_SUCCESS;
61 : }
62 :
63 : // Kernel单次调用Launch外部接口
64 0 : HcclResult ExecuteKernelLaunch(const AivOpArgs &opArgs, const AivTopoArgs &topoArgs,
65 : const AivResourceArgs &resourceArgs, const AivAlgArgs &algArgs, const ExtraArgs &extraArgs,
66 : AivProfilingInfo& aivProfilingInfo)
67 : {
68 : (void) algArgs;
69 : (void) topoArgs;
70 : (void) extraArgs;
71 : (void) opArgs;
72 : (void) resourceArgs;
73 : (void) aivProfilingInfo;
74 0 : return HCCL_SUCCESS;
75 : }
76 :
77 : // Kernel单次调用Launch外部接口
78 0 : HcclResult ExecuteKernelLaunch(const AivOpArgs &opArgs, const AivTopoArgs &topoArgs,
79 : const AivResourceArgs &resourceArgs, const AivAlgArgs &algArgs, const ExtraArgsV2 &extraArgs,
80 : AivProfilingInfo& aivProfilingInfo)
81 : {
82 : (void) algArgs;
83 : (void) topoArgs;
84 : (void) extraArgs;
85 : (void) aivProfilingInfo;
86 : (void) opArgs;
87 : (void) resourceArgs;
88 0 : return HCCL_SUCCESS;
89 : }
90 :
91 0 : void SetAivProfilingInfoBeginTime(AivProfilingInfo& aivProfilingInfo)
92 : {
93 : (void) aivProfilingInfo;
94 0 : return;
95 : }
96 :
97 0 : void SetAivProfilingInfoBeginTime(uint64_t& beginTime){
98 : (void) beginTime;
99 0 : return;
100 : }
101 :
102 : } // ~~ namespace hccl
|