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 136 : explicit LoopGroupCall(CcuRepContext* context, std::string label = "") : context(context), label(label) {}
28 : void
29 : Run(const std::vector<LoopCall>& loopVec, const std::vector<Variable>& loopCfg,
30 : const std::vector<Executor>& executors, Variable paraCfgIn, Variable offsetCfgIn) const;
31 :
32 : private:
33 : CcuRepContext* context;
34 : std::string label;
35 :
36 : uint64_t paraCfg{0};
37 : uint64_t offsetCfg{0};
38 : };
39 :
40 : }; // namespace CcuRep
41 : }; // namespace Hccl
42 : #endif // HCCL_CCU_LOOPGROUP_CALL_H
|