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 HCCL_CCU_LOOPGROUP_CALL_H
12 : #define HCCL_CCU_LOOPGROUP_CALL_H
13 :
14 : #include <vector>
15 : #include <string>
16 :
17 : #include "ccu_datatype.h"
18 : #include "ccu_loopcall.h"
19 : #include "ccu_rep_context.h"
20 : #include "ccu_rep_loopblock.h"
21 :
22 : namespace Hccl {
23 : namespace CcuRep {
24 :
25 : class LoopGroupCall {
26 : public:
27 152 : explicit LoopGroupCall(CcuRepContext *context, std::string label = "") : context(context), label(label)
28 : {
29 38 : }
30 : void Run(const std::vector<LoopCall> &loopVec, const std::vector<Variable> &loopCfg,
31 : const std::vector<Executor> &executors, Variable paraCfgIn, Variable offsetCfgIn) const;
32 :
33 : private:
34 : CcuRepContext *context;
35 : std::string label;
36 :
37 : uint64_t paraCfg{0};
38 : uint64_t offsetCfg{0};
39 : };
40 :
41 : }; // namespace CcuRep
42 : }; // namespace Hccl
43 : #endif // HCCL_CCU_LOOPGROUP_CALL_H
|