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() { return HCCL_SUCCESS; }
32 :
33 : // KernelLaunch内部接口
34 0 : HcclResult ExecuteKernelLaunchInner(
35 : const AivOpArgs& opArgs, const AivTopoArgs& topoArgs, const AivResourceArgs& resourceArgs,
36 : const AivAlgArgs& algArgs, void* args, u32 argsSize, AivProfilingInfo& aivProfilingInfo)
37 : {
38 : (void)algArgs;
39 : (void)args;
40 : (void)argsSize;
41 : (void)topoArgs;
42 : (void)aivProfilingInfo;
43 : (void)opArgs;
44 : (void)resourceArgs;
45 0 : return HCCL_SUCCESS;
46 : }
47 :
48 : // Kernel单次调用Launch外部接口
49 0 : HcclResult ExecuteKernelLaunch(
50 : const AivOpArgs& opArgs, const AivTopoArgs& topoArgs, const AivResourceArgs& resourceArgs,
51 : const AivAlgArgs& algArgs, AivProfilingInfo& aivProfilingInfo)
52 : {
53 : (void)algArgs;
54 : (void)topoArgs;
55 : (void)aivProfilingInfo;
56 : (void)opArgs;
57 : (void)resourceArgs;
58 0 : return HCCL_SUCCESS;
59 : }
60 :
61 : // Kernel单次调用Launch外部接口
62 0 : HcclResult ExecuteKernelLaunch(
63 : const AivOpArgs& opArgs, const AivTopoArgs& topoArgs, const AivResourceArgs& resourceArgs,
64 : const AivAlgArgs& algArgs, const ExtraArgs& extraArgs, AivProfilingInfo& aivProfilingInfo)
65 : {
66 : (void)algArgs;
67 : (void)topoArgs;
68 : (void)extraArgs;
69 : (void)opArgs;
70 : (void)resourceArgs;
71 : (void)aivProfilingInfo;
72 0 : return HCCL_SUCCESS;
73 : }
74 :
75 : // Kernel单次调用Launch外部接口
76 0 : HcclResult ExecuteKernelLaunch(
77 : const AivOpArgs& opArgs, const AivTopoArgs& topoArgs, const AivResourceArgs& resourceArgs,
78 : const AivAlgArgs& algArgs, const ExtraArgsV2& extraArgs, AivProfilingInfo& aivProfilingInfo)
79 : {
80 : (void)algArgs;
81 : (void)topoArgs;
82 : (void)extraArgs;
83 : (void)aivProfilingInfo;
84 : (void)opArgs;
85 : (void)resourceArgs;
86 0 : return HCCL_SUCCESS;
87 : }
88 :
89 0 : void SetAivProfilingInfoBeginTime(AivProfilingInfo& aivProfilingInfo)
90 : {
91 : (void)aivProfilingInfo;
92 0 : return;
93 : }
94 :
95 0 : void SetAivProfilingInfoBeginTime(uint64_t& beginTime)
96 : {
97 : (void)beginTime;
98 0 : return;
99 : }
100 :
101 : } // namespace hccl
|