Merged
mm aswt切换tensor api #2133
林旭Add on Feb 27
mm aswt切换tensor api #2133
Merged
Merged fromLINxu233/ops-nnmm-demointocann/ops-nnmaster
Total: 14 files changed+183-31
| @@ -85,10 +85,10 @@ public: | |||
| 85 | using BType = typename BlockMmadBuilder::BType; | 85 | using BType = typename BlockMmadBuilder::BType; |
| 86 | using CType = typename BlockMmadBuilder::CType; | 86 | using CType = typename BlockMmadBuilder::CType; |
| 87 | using BiasType = typename BlockMmadBuilder::BiasType; | 87 | using BiasType = typename BlockMmadBuilder::BiasType; |
| 88 | - using TupleShape = Shape<int64_t, int64_t, int64_t, int64_t>; | 88 | + using TupleShape = AscendC::Shape<int64_t, int64_t, int64_t, int64_t>; |
| 89 | - using TupleL1L0Shape = Shape<int64_t, int64_t, int64_t, int64_t, int64_t, int64_t>; | 89 | + using TupleL1L0Shape = AscendC::Shape<int64_t, int64_t, int64_t, int64_t, int64_t, int64_t>; |
| 90 | - using BlockShape = Shape<int64_t, int64_t, int64_t, int64_t>; | 90 | + using BlockShape = AscendC::Shape<int64_t, int64_t, int64_t, int64_t>; |
| 91 | - using BlockCoord = Coord<int64_t, int64_t, int64_t, int64_t>; | 91 | + using BlockCoord = AscendC::Coord<int64_t, int64_t, int64_t, int64_t>; |
| 92 | 92 | ||
| 93 | // ND layout | 93 | // ND layout |
| 94 | using NDLayout = AscendC::Layout<AscendC::Shape<int64_t, int64_t>, AscendC::Stride<int64_t, int64_t>>; | 94 | using NDLayout = AscendC::Layout<AscendC::Shape<int64_t, int64_t>, AscendC::Stride<int64_t, int64_t>>; |
| @@ -98,9 +98,9 @@ public: | |||
| 98 | using BType = typename BlockMmadBuilder::BType; | 98 | using BType = typename BlockMmadBuilder::BType; |
| 99 | using CType = typename BlockMmadBuilder::CType; | 99 | using CType = typename BlockMmadBuilder::CType; |
| 100 | using BiasType = typename BlockMmadBuilder::BiasType; | 100 | using BiasType = typename BlockMmadBuilder::BiasType; |
| 101 | - using TupleShape = Shape<int64_t, int64_t, int64_t, int64_t>; | 101 | + using TupleShape = AscendC::Shape<int64_t, int64_t, int64_t, int64_t>; |
| 102 | - using BlockShape = Shape<int64_t, int64_t, int64_t, int64_t>; | 102 | + using BlockShape = AscendC::Shape<int64_t, int64_t, int64_t, int64_t>; |
| 103 | - using BlockCoord = Coord<int64_t, int64_t, int64_t, int64_t>; | 103 | + using BlockCoord = AscendC::Coord<int64_t, int64_t, int64_t, int64_t>; |
| 104 | 104 | ||
| 105 | // ND layout | 105 | // ND layout |
| 106 | using NDLayout = AscendC::Layout<AscendC::Shape<int64_t, int64_t>, AscendC::Stride<int64_t, int64_t>>; | 106 | using NDLayout = AscendC::Layout<AscendC::Shape<int64_t, int64_t>, AscendC::Stride<int64_t, int64_t>>; |
| @@ -77,8 +77,8 @@ public: | |||
| 77 | using AType = typename BlockMmadBuilder::AType; | 77 | using AType = typename BlockMmadBuilder::AType; |
| 78 | using BType = typename BlockMmadBuilder::BType; | 78 | using BType = typename BlockMmadBuilder::BType; |
| 79 | using CType = typename BlockMmadBuilder::CType; | 79 | using CType = typename BlockMmadBuilder::CType; |
| 80 | - using TupleShape = Shape<int64_t, int64_t, int64_t, int64_t>; | 80 | + using TupleShape = AscendC::Shape<int64_t, int64_t, int64_t, int64_t>; |
| 81 | - using ParamsShape = Shape<uint64_t, uint64_t, uint64_t>; | 81 | + using ParamsShape = AscendC::Shape<uint64_t, uint64_t, uint64_t>; |
| 82 | 82 | ||
| 83 | // ND layout | 83 | // ND layout |
| 84 | using NDLayout = AscendC::Layout<AscendC::Shape<int64_t, int64_t>, AscendC::Stride<int64_t, int64_t>>; | 84 | using NDLayout = AscendC::Layout<AscendC::Shape<int64_t, int64_t>, AscendC::Stride<int64_t, int64_t>>; |
| @@ -84,8 +84,8 @@ public: | |||
| 84 | using NDLayout = AscendC::Layout<AscendC::Shape<int64_t, int64_t>, AscendC::Stride<int64_t, int64_t>>; | 84 | using NDLayout = AscendC::Layout<AscendC::Shape<int64_t, int64_t>, AscendC::Stride<int64_t, int64_t>>; |
| 85 | 85 | ||
| 86 | static constexpr CubeFormat formatB = TagToFormat<LayoutB>::format; | 86 | static constexpr CubeFormat formatB = TagToFormat<LayoutB>::format; |
| 87 | - static constexpr bool isNdFormat = formatB == CubeFormat::ND; | 87 | + static constexpr bool isNdFormat = (formatB == CubeFormat::ND); |
| 88 | - static constexpr bool isFp32 = std::is_same_v<CType, float>; | 88 | + static constexpr bool isFp32 = (std::is_same_v<BType, float>); |
| 89 | 89 | ||
| 90 | // no need to have tensortrait | 90 | // no need to have tensortrait |
| 91 | AscendC::GlobalTensor<AType> aGlobal_; | 91 | AscendC::GlobalTensor<AType> aGlobal_; |
| @@ -41,7 +41,7 @@ | |||
| 41 | .UnknownShapeFormat({ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND}); | 41 | .UnknownShapeFormat({ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND}); |
| 42 | this->Output("y") | 42 | this->Output("y") |
| 43 | .ParamType(REQUIRED) | 43 | .ParamType(REQUIRED) |
| 44 | - .DataType({ge::DT_FLOAT16, ge::DT_FLOAT16, ge::DT_BF16, ge::DT_BF16, ge::DT_FLOAT, ge::DT_FLOAT16, ge::DT_FLOAT, ge::DT_BF16, ge::DT_FLOAT}) | 44 | + .DataType({ge::DT_FLOAT16, ge::DT_FLOAT16, ge::DT_BF16, ge::DT_BF16, ge::DT_FLOAT, ge::DT_FLOAT, ge::DT_FLOAT, ge::DT_FLOAT, ge::DT_FLOAT}) |
| 45 | .Format({ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND}) | 45 | .Format({ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND}) |
| 46 | .UnknownShapeFormat({ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND}); | 46 | .UnknownShapeFormat({ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND}); |
| 47 | this->Attr("transpose_x1") | 47 | this->Attr("transpose_x1") |
| @@ -148,10 +148,10 @@ protected: | |||
| 148 | return cacheMode; | 148 | return cacheMode; |
| 149 | } | 149 | } |
| 150 | 150 | ||
| 151 | - //子类中指定模版 | 151 | + // 子类中指定模版 |
| 152 | virtual ge::graphStatus GetTilingData(TilingResult& tiling) const = 0; | 152 | virtual ge::graphStatus GetTilingData(TilingResult& tiling) const = 0; |
| 153 | 153 | ||
| 154 | - //根据模版赋值TilingData | 154 | + // 根据模版赋值TilingData |
| 155 | template <typename TilingDataType> | 155 | template <typename TilingDataType> |
| 156 | ge::graphStatus GetTilingDataImpl(TilingResult& tiling) const | 156 | ge::graphStatus GetTilingDataImpl(TilingResult& tiling) const |
| 157 | { | 157 | { |
| @@ -270,6 +270,38 @@ void MatMulV3BasicAswtTiling::DoBL1FullLoad(uint64_t aBatchDimAll, uint64_t bias | |||
| 270 | return; | 270 | return; |
| 271 | } | 271 | } |
| 272 | 272 | ||
| 273 | +void MatMulV3BasicAswtTiling::CheckTensorApiSupport() | ||
| 274 | +{ | ||
| 275 | + auto selfShape = context_->GetInputShape(0)->GetOriginShape(); | ||
| 276 | + auto mat2Shape = context_->GetInputShape(1)->GetOriginShape(); | ||
| 277 | + auto selfStorageShape = context_->GetInputShape(0)->GetStorageShape(); | ||
| 278 | + size_t selfDimNum = selfShape.GetDimNum(); | ||
| 279 | + size_t mat2DimNum = mat2Shape.GetDimNum(); | ||
| 280 | + bool isMatmul = strcmp(context_->GetNodeType(), "MatMulV3") == 0; | ||
| 281 | + // Slice非连续校验,根据storageshape 1d和左矩阵3d 右矩阵维度2d判断 | ||
| 282 | + bool isSlice = | ||
| 283 | + context_->InputIsView(0) && (selfStorageShape.GetDimNum() == 1) && (selfDimNum == 3) && mat2DimNum == 2; | ||
| 284 | + | ||
| 285 | + // FP32切K判断 | ||
| 286 | + bool isFp32 = (args_.aType == ge::DT_FLOAT && args_.bType == ge::DT_FLOAT); | ||
| 287 | + bool isNdFormat = (args_.aFormat == ge::FORMAT_ND && args_.bFormat == ge::FORMAT_ND); | ||
| 288 | + uint64_t fp32SplitKThreshold = | ||
| 289 | + args_.kValue > FP32_K_SWITCH_THRESHOLD ? FP32_SPLIT_K_THRESHOLD2 : FP32_SPLIT_K_THRESHOLD1; | ||
| 290 | + bool isSplitK = false; | ||
| 291 | + // 连续且非全载场景才支持切K | ||
| 292 | + if (!isSlice && isFp32 && !args_.isHf32 && isNdFormat && args_.kValue > fp32SplitKThreshold && | ||
| 293 | + fullLoad_ == MatMulV3FullLoad::NONE_FULL_LOAD) { | ||
| 294 | + isSplitK = true; | ||
| 295 | + } | ||
| 296 | + | ||
| 297 | + // Matmul非切K且连续场景下才允许切换tensor api实现 | ||
| 298 | + apiLevel_ = (isMatmul && !isSlice && !isSplitK) ? MatMulV3ApiLevel::TENSOR_LEVEL : MatMulV3ApiLevel::BASIC_LEVEL; | ||
| 299 | + // 1952当前只支持基础API | ||
| 300 | + if (compileInfo_.npuArch == NpuArch::DAV_RESV) { | ||
| 301 | + apiLevel_ = MatMulV3ApiLevel::BASIC_LEVEL; | ||
| 302 | + } | ||
| 303 | +} | ||
| 304 | + | ||
| 273 | ge::graphStatus MatMulV3BasicAswtTiling::DoOpTiling() | 305 | ge::graphStatus MatMulV3BasicAswtTiling::DoOpTiling() |
| 274 | { | 306 | { |
| 275 | MatMulV3AswTiling::DoNormOpTiling(); | 307 | MatMulV3AswTiling::DoNormOpTiling(); |
| @@ -289,6 +321,8 @@ ge::graphStatus MatMulV3BasicAswtTiling::DoOpTiling() | |||
| 289 | runInfo_.stepKb = runInfo_.stepKa; // has bias, adjust stepK to suitable value | 321 | runInfo_.stepKb = runInfo_.stepKa; // has bias, adjust stepK to suitable value |
| 290 | runInfo_.depthA1 = runInfo_.stepKa * DB_SIZE; | 322 | runInfo_.depthA1 = runInfo_.stepKa * DB_SIZE; |
| 291 | runInfo_.depthB1 = runInfo_.stepKb * DB_SIZE; | 323 | runInfo_.depthB1 = runInfo_.stepKb * DB_SIZE; |
| 324 | + // 确认是否切换tensor api | ||
| 325 | + CheckTensorApiSupport(); | ||
| 292 | } | 326 | } |
| 293 | return ge::GRAPH_SUCCESS; | 327 | return ge::GRAPH_SUCCESS; |
| 294 | } | 328 | } |
| @@ -301,7 +335,7 @@ uint64_t MatMulV3BasicAswtTiling::GetTilingKey() const | |||
| 301 | .SetFullLoad(fullLoad_) | 335 | .SetFullLoad(fullLoad_) |
| 302 | .SetModel(MatMulV3Model::BASIC) | 336 | .SetModel(MatMulV3Model::BASIC) |
| 303 | .SetL0C2Out(l0C2Out_) | 337 | .SetL0C2Out(l0C2Out_) |
| 304 | - .SetApiLevel(MatMulV3ApiLevel::BASIC_LEVEL) | 338 | + .SetApiLevel(apiLevel_) |
| 305 | .GetTilingKey(); | 339 | .GetTilingKey(); |
| 306 | } | 340 | } |
| 307 | 341 | ||
| @@ -29,6 +29,7 @@ public: | |||
| 29 | bool CheckAL1FullLoadDav3510(const uint64_t kAlignedValue, const uint64_t mAlignedValue) const; | 29 | bool CheckAL1FullLoadDav3510(const uint64_t kAlignedValue, const uint64_t mAlignedValue) const; |
| 30 | void AdjustBL1Tiling3510Basic(uint64_t biasBatchDimAll); | 30 | void AdjustBL1Tiling3510Basic(uint64_t biasBatchDimAll); |
| 31 | void AdjustAL1Tiling3510Basic(uint64_t biasBatchDimAll); | 31 | void AdjustAL1Tiling3510Basic(uint64_t biasBatchDimAll); |
| 32 | + void CheckTensorApiSupport(); | ||
| 32 | 33 | ||
| 33 | protected: | 34 | protected: |
| 34 | bool IsCapable() override; | 35 | bool IsCapable() override; |
| @@ -39,6 +40,7 @@ protected: | |||
| 39 | void DoAL1FullLoad(uint64_t bBatchDimAll = 1UL, uint64_t biasBatchDimAll = 1UL); | 40 | void DoAL1FullLoad(uint64_t bBatchDimAll = 1UL, uint64_t biasBatchDimAll = 1UL); |
| 40 | MatMulV3FullLoad fullLoad_ {MatMulV3FullLoad::NONE_FULL_LOAD}; | 41 | MatMulV3FullLoad fullLoad_ {MatMulV3FullLoad::NONE_FULL_LOAD}; |
| 41 | MatMulV3L0C2Out l0C2Out_ {MatMulV3L0C2Out::ON_THE_FLY}; | 42 | MatMulV3L0C2Out l0C2Out_ {MatMulV3L0C2Out::ON_THE_FLY}; |
| 43 | + MatMulV3ApiLevel apiLevel_ {MatMulV3ApiLevel::BASIC_LEVEL}; | ||
| 42 | 44 | ||
| 43 | private: | 45 | private: |
| 44 | void FullLoadPre(); | 46 | void FullLoadPre(); |
| @@ -57,6 +57,9 @@ constexpr uint64_t MIN_TATL_BLOCK_SIZE = 1024; | |||
| 57 | constexpr double CUBE_BOUND_RATIO = 0.85; | 57 | constexpr double CUBE_BOUND_RATIO = 0.85; |
| 58 | constexpr double EPSILON = 1e-9; | 58 | constexpr double EPSILON = 1e-9; |
| 59 | constexpr uint64_t SK_SPLITK_THRESHOLD = 1024UL; | 59 | constexpr uint64_t SK_SPLITK_THRESHOLD = 1024UL; |
| 60 | +constexpr int64_t FP32_K_SWITCH_THRESHOLD = 268435456; // 1024 * 32 * 8192 | ||
| 61 | +constexpr uint64_t FP32_SPLIT_K_THRESHOLD1 = 1024UL; | ||
| 62 | +constexpr uint64_t FP32_SPLIT_K_THRESHOLD2 = 8192UL; | ||
| 60 | 63 | ||
| 61 | struct BatchMatMulV3RunInfo { | 64 | struct BatchMatMulV3RunInfo { |
| 62 | uint64_t iterBatch = 0UL; | 65 | uint64_t iterBatch = 0UL; |
| @@ -172,6 +172,7 @@ ge::graphStatus MatMulV3Tiling::DoTiling() | |||
| 172 | OPS_CHECK_NULL_WITH_CONTEXT(context_, tilingCfg.compileInfo); | 172 | OPS_CHECK_NULL_WITH_CONTEXT(context_, tilingCfg.compileInfo); |
| 173 | NpuArch npuArch = reinterpret_cast<const MatmulV3CompileInfo *>(tilingCfg.compileInfo)->npuArch; | 173 | NpuArch npuArch = reinterpret_cast<const MatmulV3CompileInfo *>(tilingCfg.compileInfo)->npuArch; |
| 174 | MMRegisterCfg registerCfg{ "MatMulV3", npuArch, strategy::GetMatMulV3Priorities(npuArch) }; | 174 | MMRegisterCfg registerCfg{ "MatMulV3", npuArch, strategy::GetMatMulV3Priorities(npuArch) }; |
| 175 | + // 选择不同的tiling策略并执行其Optiling方法 | ||
| 175 | return MMTilingRegistry::GetInstance().DoTilingImpl(context_, tilingCfg, registerCfg); | 176 | return MMTilingRegistry::GetInstance().DoTilingImpl(context_, tilingCfg, registerCfg); |
| 176 | } | 177 | } |
| 177 | 178 | ||
| @@ -0,0 +1,89 @@ | |||
| 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 | +/* ! | ||
| 12 | + * \file mat_mul_pingpong_basic.h | ||
| 13 | + * \brief | ||
| 14 | + */ | ||
| 15 | +#ifndef MAT_MUL_PINGPONG_BASIC_H | ||
| 16 | +#define MAT_MUL_PINGPONG_BASIC_H | ||
| 17 | + | ||
| 18 | +#include "blaze/gemm/kernel/kernel_matmul_basic.h" | ||
| 19 | +#include "blaze/gemm/block/block_mmad.h" | ||
| 20 | +#include "blaze/gemm/block/block_mmad_matmul_basic.h" | ||
| 21 | +#include "blaze/gemm/block/block_scheduler_matmul_basic.h" | ||
| 22 | +#include "blaze/gemm/policy/dispatch_policy.h" | ||
| 23 | + | ||
| 24 | +namespace MatmulV3Advanced { | ||
| 25 | + | ||
| 26 | +template < | ||
| 27 | + class A_TYPE, class B_TYPE, class C_TYPE, class BIAS_TYPE, class A_LAYOUT, class B_LAYOUT, class C_LAYOUT, | ||
| 28 | + uint64_t FULL_LOAD_MODE = 0, uint64_t FUSED_OP_TYPE = 0> | ||
| 29 | +__aicore__ inline void MatMulBasicKernel( | ||
| 30 | + GM_ADDR aGM, GM_ADDR bGM, GM_ADDR biasGM, GM_ADDR cGM, GM_ADDR workspaceGM, | ||
| 31 | + const MatMulV3BasicTilingData& tilingData, int64_t batch = 0) | ||
| 32 | +{ | ||
| 33 | + // 定义矩阵的类型和布局 | ||
| 34 | + using AType = A_TYPE; | ||
| 35 | + using BType = B_TYPE; | ||
| 36 | + using BiasType = BIAS_TYPE; | ||
| 37 | + using OutType = C_TYPE; | ||
| 38 | + | ||
| 39 | + using LayoutA = A_LAYOUT; | ||
| 40 | + using LayoutB = B_LAYOUT; | ||
| 41 | + using LayoutC = C_LAYOUT; | ||
| 42 | + using LayoutBias = LayoutC; | ||
| 43 | + | ||
| 44 | + // 定义shape的形状,tuple保存 m n k batch | ||
| 45 | + using ProblemShape = AscendC::Te::Shape<int64_t, int64_t, int64_t, int64_t>; | ||
| 46 | + | ||
| 47 | + // 定义scheduler类型 | ||
| 48 | + using BlockScheduler = Blaze::Gemm::Block::BlockSchedulerMatmulBasic<ProblemShape, FULL_LOAD_MODE>; | ||
| 49 | + | ||
| 50 | + // 定义MMAD类型 | ||
| 51 | + using DispatchPolicy = Blaze::Gemm::MatmulMultiBlockBasic<FULL_LOAD_MODE, FUSED_OP_TYPE>; | ||
| 52 | + using BlockMmad = Blaze::Gemm::Block::BlockMmad< | ||
| 53 | + DispatchPolicy, AType, LayoutA, BType, LayoutB, OutType, LayoutC, BiasType, LayoutBias>; | ||
| 54 | + | ||
| 55 | + // 定义BlockEpilogue类型 | ||
| 56 | + using BlockEpilogue = Blaze::Gemm::Block::BlockEpilogueEmpty; | ||
| 57 | + | ||
| 58 | + // 定义Kernel类型 | ||
| 59 | + using MatmulKernel = Blaze::Gemm::Kernel::GemmUniversal<ProblemShape, BlockMmad, BlockEpilogue, BlockScheduler>; | ||
| 60 | + using Params = typename MatmulKernel::Params; | ||
| 61 | + Params params = { | ||
| 62 | + {tilingData.m, tilingData.n, tilingData.k, batch}, // shape | ||
| 63 | + {aGM, bGM, cGM, biasGM}, // gm addr | ||
| 64 | + {}, // epilogue args | ||
| 65 | + {tilingData.mL1, | ||
| 66 | + tilingData.nL1, | ||
| 67 | + tilingData.kL1, | ||
| 68 | + tilingData.baseM, | ||
| 69 | + tilingData.baseN, | ||
| 70 | + tilingData.baseK, | ||
| 71 | + tilingData.mTailCnt, | ||
| 72 | + tilingData.nTailCnt, | ||
| 73 | + tilingData.mBaseTailSplitCnt, | ||
| 74 | + tilingData.nBaseTailSplitCnt, | ||
| 75 | + tilingData.mTailMain, | ||
| 76 | + tilingData.nTailMain, | ||
| 77 | + tilingData.isHf32, | ||
| 78 | + tilingData.l1BufferNum, | ||
| 79 | + tilingData.l0cDB, | ||
| 80 | + tilingData.ubDB, | ||
| 81 | + tilingData.l2CacheDisable, | ||
| 82 | + tilingData.sliceM, | ||
| 83 | + tilingData.srcNdStride, | ||
| 84 | + tilingData.innerBatch}}; // scheduler params | ||
| 85 | + MatmulKernel mm; | ||
| 86 | + mm(params); | ||
| 87 | +} | ||
| 88 | +} // namespace MatmulV3Advanced | ||
| 89 | +#endif | ||
| @@ -75,6 +75,16 @@ ASCENDC_TPL_SEL( | |||
| 75 | ASCENDC_TPL_UINT_SEL(FULL_LOAD, ASCENDC_TPL_UI_LIST, MAT_MUL_NO_FULL_LOAD, MAT_MUL_B_FULL_LOAD), | 75 | ASCENDC_TPL_UINT_SEL(FULL_LOAD, ASCENDC_TPL_UI_LIST, MAT_MUL_NO_FULL_LOAD, MAT_MUL_B_FULL_LOAD), |
| 76 | ASCENDC_TPL_UINT_SEL(L0C2OUT_MODEL, ASCENDC_TPL_UI_LIST, MAT_MUL_ON_THE_FLY), | 76 | ASCENDC_TPL_UINT_SEL(L0C2OUT_MODEL, ASCENDC_TPL_UI_LIST, MAT_MUL_ON_THE_FLY), |
| 77 | ASCENDC_TPL_TILING_STRUCT_SEL(MatMulV3BasicTilingData)), | 77 | ASCENDC_TPL_TILING_STRUCT_SEL(MatMulV3BasicTilingData)), |
| 78 | + ASCENDC_TPL_ARGS_SEL( | ||
| 79 | + ASCENDC_TPL_KERNEL_TYPE_SEL(ASCENDC_TPL_AIC_ONLY), | ||
| 80 | + ASCENDC_TPL_UINT_SEL(API_LEVEL, ASCENDC_TPL_UI_LIST, MAT_MUL_TENSOR_LEVEL), | ||
| 81 | + ASCENDC_TPL_UINT_SEL(A_TRANS, ASCENDC_TPL_UI_LIST, MAT_MUL_NO_TRANS, MAT_MUL_TRANS), | ||
| 82 | + ASCENDC_TPL_UINT_SEL(B_TRANS, ASCENDC_TPL_UI_LIST, MAT_MUL_NO_TRANS, MAT_MUL_TRANS), | ||
| 83 | + ASCENDC_TPL_UINT_SEL(BATCH_MODEL, ASCENDC_TPL_UI_LIST, MAT_MUL_FOR_BATCH), | ||
| 84 | + ASCENDC_TPL_UINT_SEL(MODEL, ASCENDC_TPL_UI_LIST, MAT_MUL_BASIC), | ||
| 85 | + ASCENDC_TPL_UINT_SEL(FULL_LOAD, ASCENDC_TPL_UI_LIST, MAT_MUL_NO_FULL_LOAD), | ||
| 86 | + ASCENDC_TPL_UINT_SEL(L0C2OUT_MODEL, ASCENDC_TPL_UI_LIST, MAT_MUL_ON_THE_FLY), | ||
| 87 | + ASCENDC_TPL_TILING_STRUCT_SEL(MatMulV3BasicTilingData)), | ||
| 78 | ASCENDC_TPL_ARGS_SEL( | 88 | ASCENDC_TPL_ARGS_SEL( |
| 79 | ASCENDC_TPL_KERNEL_TYPE_SEL(ASCENDC_TPL_MIX_AIC_1_2), | 89 | ASCENDC_TPL_KERNEL_TYPE_SEL(ASCENDC_TPL_MIX_AIC_1_2), |
| 80 | ASCENDC_TPL_UINT_SEL(API_LEVEL, ASCENDC_TPL_UI_LIST, MAT_MUL_BASIC_LEVEL), | 90 | ASCENDC_TPL_UINT_SEL(API_LEVEL, ASCENDC_TPL_UI_LIST, MAT_MUL_BASIC_LEVEL), |
| @@ -12,7 +12,6 @@ | |||
| 12 | * \file mat_mul_v3.cpp | 12 | * \file mat_mul_v3.cpp |
| 13 | * \brief | 13 | * \brief |
| 14 | */ | 14 | */ |
| 15 | - | ||
| 16 | #if ASC_DEVKIT_MAJOR < 9 || (ASC_DEVKIT_MAJOR == 9 && ASC_DEVKIT_MINOR <= 0) | 15 | #if ASC_DEVKIT_MAJOR < 9 || (ASC_DEVKIT_MAJOR == 9 && ASC_DEVKIT_MINOR <= 0) |
| 17 | #define IS_BLAZE false | 16 | #define IS_BLAZE false |
| 18 | #else | 17 | #else |
| @@ -32,6 +31,7 @@ | |||
| 32 | #include "mat_mul_streamk_basic_cmct.h" | 31 | #include "mat_mul_streamk_basic_cmct.h" |
| 33 | #include "mat_mul_fixpipe_opti_basic_cmct.h" | 32 | #include "mat_mul_fixpipe_opti_basic_cmct.h" |
| 34 | #if IS_BLAZE | 33 | #if IS_BLAZE |
| 34 | +#include "mat_mul_pingpong_basic.h" | ||
| 35 | #include "mat_mul_streamk.h" | 35 | #include "mat_mul_streamk.h" |
| 36 | #endif | 36 | #endif |
| 37 | #endif | 37 | #endif |
| @@ -108,6 +108,8 @@ __global__ __aicore__ void mat_mul_v3( | |||
| 108 | (format_x2 == CubeFormat::NZ), AscendC::Te::ZNLayoutPtn, AscendC::Te::DNExtLayoutPtn>, | 108 | (format_x2 == CubeFormat::NZ), AscendC::Te::ZNLayoutPtn, AscendC::Te::DNExtLayoutPtn>, |
| 109 | AscendC::Std::conditional_t< | 109 | AscendC::Std::conditional_t< |
| 110 | (format_x2 == CubeFormat::NZ), AscendC::Te::NZLayoutPtn, AscendC::Te::NDExtLayoutPtn>>; | 110 | (format_x2 == CubeFormat::NZ), AscendC::Te::NZLayoutPtn, AscendC::Te::NDExtLayoutPtn>>; |
| 111 | + // C GM layout | ||
| 112 | + using layoutC = AscendC::Te::NDExtLayoutPtn; | ||
| 111 | #endif | 113 | #endif |
| 112 | 114 | ||
| 113 | REGISTER_TILING_DEFAULT(MatMulV3TilingDataCopy); | 115 | REGISTER_TILING_DEFAULT(MatMulV3TilingDataCopy); |
| @@ -115,25 +117,36 @@ __global__ __aicore__ void mat_mul_v3( | |||
| 115 | 117 | ||
| 116 | if constexpr ( | 118 | if constexpr ( |
| 117 | API_LEVEL == MAT_MUL_BASIC_LEVEL && FULL_LOAD == MAT_MUL_NO_FULL_LOAD && MODEL == MAT_MUL_BASIC && | 119 | API_LEVEL == MAT_MUL_BASIC_LEVEL && FULL_LOAD == MAT_MUL_NO_FULL_LOAD && MODEL == MAT_MUL_BASIC && |
| 118 | - L0C2OUT_MODEL == MAT_MUL_ON_THE_FLY) { | 120 | + L0C2OUT_MODEL == MAT_MUL_ON_THE_FLY) { // ASWT模板非全载基础API |
| 119 | GET_TILING_DATA_WITH_STRUCT(MatMulV3BasicTilingData, tilingData, tilingGM); | 121 | GET_TILING_DATA_WITH_STRUCT(MatMulV3BasicTilingData, tilingData, tilingGM); |
| 120 | MatmulV3Advanced::MatMulActKernel<DTYPE_X1, DTYPE_X2, DTYPE_Y, DTYPE_BIAS, aLayout, bLayout, layout::RowMajor>( | 122 | MatmulV3Advanced::MatMulActKernel<DTYPE_X1, DTYPE_X2, DTYPE_Y, DTYPE_BIAS, aLayout, bLayout, layout::RowMajor>( |
| 121 | aGM, bGM, biasGM, cGM, nullptr, tilingData); | 123 | aGM, bGM, biasGM, cGM, nullptr, tilingData); |
| 122 | } else if constexpr ( | 124 | } else if constexpr ( |
| 123 | API_LEVEL == MAT_MUL_BASIC_LEVEL && FULL_LOAD == MAT_MUL_B_FULL_LOAD && MODEL == MAT_MUL_BASIC && | 125 | API_LEVEL == MAT_MUL_BASIC_LEVEL && FULL_LOAD == MAT_MUL_B_FULL_LOAD && MODEL == MAT_MUL_BASIC && |
| 124 | - L0C2OUT_MODEL == MAT_MUL_ON_THE_FLY) { | 126 | + L0C2OUT_MODEL == MAT_MUL_ON_THE_FLY) { // B全载基础API |
| 125 | GET_TILING_DATA_WITH_STRUCT(MatMulV3BasicTilingData, tilingData, tilingGM); | 127 | GET_TILING_DATA_WITH_STRUCT(MatMulV3BasicTilingData, tilingData, tilingGM); |
| 126 | MatmulV3Advanced::MatMulActKernel< | 128 | MatmulV3Advanced::MatMulActKernel< |
| 127 | DTYPE_X1, DTYPE_X2, DTYPE_Y, DTYPE_BIAS, aLayout, bLayout, layout::RowMajor, B_FULL_LOAD_MODE>( | 129 | DTYPE_X1, DTYPE_X2, DTYPE_Y, DTYPE_BIAS, aLayout, bLayout, layout::RowMajor, B_FULL_LOAD_MODE>( |
| 128 | aGM, bGM, biasGM, cGM, nullptr, tilingData); | 130 | aGM, bGM, biasGM, cGM, nullptr, tilingData); |
| 129 | } else if constexpr ( | 131 | } else if constexpr ( |
| 130 | API_LEVEL == MAT_MUL_BASIC_LEVEL && FULL_LOAD == MAT_MUL_A_FULL_LOAD && MODEL == MAT_MUL_BASIC && | 132 | API_LEVEL == MAT_MUL_BASIC_LEVEL && FULL_LOAD == MAT_MUL_A_FULL_LOAD && MODEL == MAT_MUL_BASIC && |
| 131 | - L0C2OUT_MODEL == MAT_MUL_ON_THE_FLY) { // A全载模板切换基础API kernel实现 | 133 | + L0C2OUT_MODEL == MAT_MUL_ON_THE_FLY) { // A全载基础API |
| 132 | GET_TILING_DATA_WITH_STRUCT(MatMulV3BasicTilingData, tilingData, tilingGM); | 134 | GET_TILING_DATA_WITH_STRUCT(MatMulV3BasicTilingData, tilingData, tilingGM); |
| 133 | MatmulV3Advanced::MatMulActKernel< | 135 | MatmulV3Advanced::MatMulActKernel< |
| 134 | DTYPE_X1, DTYPE_X2, DTYPE_Y, DTYPE_BIAS, aLayout, bLayout, layout::RowMajor, A_FULL_LOAD_MODE>( | 136 | DTYPE_X1, DTYPE_X2, DTYPE_Y, DTYPE_BIAS, aLayout, bLayout, layout::RowMajor, A_FULL_LOAD_MODE>( |
| 135 | aGM, bGM, biasGM, cGM, nullptr, tilingData); | 137 | aGM, bGM, biasGM, cGM, nullptr, tilingData); |
| 136 | #if !(defined(__NPU_ARCH__) && (__NPU_ARCH__ == 5102)) | 138 | #if !(defined(__NPU_ARCH__) && (__NPU_ARCH__ == 5102)) |
| 139 | + } else if ( | ||
| 140 | + API_LEVEL == MAT_MUL_TENSOR_LEVEL && FULL_LOAD == MAT_MUL_NO_FULL_LOAD && MODEL == MAT_MUL_BASIC && | ||
| 141 | + L0C2OUT_MODEL == MAT_MUL_ON_THE_FLY) { // ASWT模板非全载TensorAPI | ||
| 142 | + GET_TILING_DATA_WITH_STRUCT(MatMulV3BasicTilingData, tilingData, tilingGM); | ||
| 143 | +#if IS_BLAZE | ||
| 144 | + MatmulV3Advanced::MatMulBasicKernel<DTYPE_X1, DTYPE_X2, DTYPE_Y, DTYPE_BIAS, layoutA, layoutB, layoutC>( | ||
| 145 | + aGM, bGM, biasGM, cGM, nullptr, tilingData); | ||
| 146 | +#else | ||
| 147 | + MatmulV3Advanced::MatMulActKernel<DTYPE_X1, DTYPE_X2, DTYPE_Y, DTYPE_BIAS, aLayout, bLayout, layout::RowMajor>( | ||
| 148 | + aGM, bGM, biasGM, cGM, nullptr, tilingData); | ||
| 149 | +#endif | ||
| 137 | } else if constexpr ( | 150 | } else if constexpr ( |
| 138 | API_LEVEL == MAT_MUL_TENSOR_LEVEL && FULL_LOAD == MAT_MUL_NO_FULL_LOAD && MODEL == MAT_MUL_STREAM_K && | 151 | API_LEVEL == MAT_MUL_TENSOR_LEVEL && FULL_LOAD == MAT_MUL_NO_FULL_LOAD && MODEL == MAT_MUL_STREAM_K && |
| 139 | L0C2OUT_MODEL == MAT_MUL_ON_THE_FLY) { | 152 | L0C2OUT_MODEL == MAT_MUL_ON_THE_FLY) { |
| @@ -870,7 +870,7 @@ static TilingTestParam ascend950_cases_params[] = { | |||
| 870 | "block_dim":{"CORE_NUM":32, "vector_core_cnt": 64},"corerect_range_flag":null,"dynamic_mode":"dynamic_mkn", "fused_double_operand_num": 0, | 870 | "block_dim":{"CORE_NUM":32, "vector_core_cnt": 64},"corerect_range_flag":null,"dynamic_mode":"dynamic_mkn", "fused_double_operand_num": 0, |
| 871 | "hardware_info": {"BT_SIZE": 4096, "load3d_constraints": "unknown", "Intrinsic_fix_pipe_l0c2out": true, "Intrinsic_data_move_l12ub": false, "Intrinsic_data_move_l0c2ub": false, "Intrinsic_data_move_l12bt": true, "Intrinsic_data_move_out2l1_nd2nz": true, "UB_SIZE": 253952, "L2_SIZE": 134217728, "L1_SIZE": 524288, "L0A_SIZE": 65536, "L0B_SIZE": 65536, "L0C_SIZE": 262144, "CORE_NUM": 32, "vector_core_cnt": 64, "socVersion": "Ascend950" }, | 871 | "hardware_info": {"BT_SIZE": 4096, "load3d_constraints": "unknown", "Intrinsic_fix_pipe_l0c2out": true, "Intrinsic_data_move_l12ub": false, "Intrinsic_data_move_l0c2ub": false, "Intrinsic_data_move_l12bt": true, "Intrinsic_data_move_out2l1_nd2nz": true, "UB_SIZE": 253952, "L2_SIZE": 134217728, "L1_SIZE": 524288, "L0A_SIZE": 65536, "L0B_SIZE": 65536, "L0C_SIZE": 262144, "CORE_NUM": 32, "vector_core_cnt": 64, "socVersion": "Ascend950" }, |
| 872 | "format_a":"ND","format_b":"FRACTAL_NZ","repo_range":{},"repo_seeds":{}})", | 872 | "format_a":"ND","format_b":"FRACTAL_NZ","repo_range":{},"repo_seeds":{}})", |
| 873 | - ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_FRACTAL_NZ, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, true, false, 0, 0, {15083, 8906}, {1, 943, 16, 16}, {8906, 2}, {15083, 8906}, {15083, 2}, {8906, 2}, false, 0, 0, 31, 17UL, | 873 | + ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_FRACTAL_NZ, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, true, false, 0, 0, {15083, 8906}, {1, 943, 16, 16}, {8906, 2}, {15083, 8906}, {15083, 2}, {8906, 2}, false, 0, 0, 31, 18UL, |
| 874 | "31 8906 2 15083 288 16 192 288 16 48 15083 1 1 1 1 0 0 16908800 0 288 1 0 " | 874 | "31 8906 2 15083 288 16 192 288 16 48 15083 1 1 1 1 0 0 16908800 0 288 1 0 " |
| 875 | }, | 875 | }, |
| 876 | { | 876 | { |
| @@ -906,7 +906,7 @@ static TilingTestParam ascend950_cases_params[] = { | |||
| 906 | "block_dim":{"CORE_NUM":32, "vector_core_cnt": 56},"corerect_range_flag":null,"dynamic_mode":"dynamic_mkn", "fused_double_operand_num": 0, | 906 | "block_dim":{"CORE_NUM":32, "vector_core_cnt": 56},"corerect_range_flag":null,"dynamic_mode":"dynamic_mkn", "fused_double_operand_num": 0, |
| 907 | "hardware_info": {"BT_SIZE": 4096, "load3d_constraints": "unknown", "Intrinsic_fix_pipe_l0c2out": true, "Intrinsic_data_move_l12ub": false, "Intrinsic_data_move_l0c2ub": false, "Intrinsic_data_move_l12bt": true, "Intrinsic_data_move_out2l1_nd2nz": true, "UB_SIZE": 253952, "L2_SIZE": 134217728, "L1_SIZE": 524288, "L0A_SIZE": 65536, "L0B_SIZE": 65536, "L0C_SIZE": 262144, "CORE_NUM": 32, "vector_core_cnt": 56, "socVersion": "Ascend950" }, | 907 | "hardware_info": {"BT_SIZE": 4096, "load3d_constraints": "unknown", "Intrinsic_fix_pipe_l0c2out": true, "Intrinsic_data_move_l12ub": false, "Intrinsic_data_move_l0c2ub": false, "Intrinsic_data_move_l12bt": true, "Intrinsic_data_move_out2l1_nd2nz": true, "UB_SIZE": 253952, "L2_SIZE": 134217728, "L1_SIZE": 524288, "L0A_SIZE": 65536, "L0B_SIZE": 65536, "L0C_SIZE": 262144, "CORE_NUM": 32, "vector_core_cnt": 56, "socVersion": "Ascend950" }, |
| 908 | "format_a":"ND","format_b":"ND","repo_range":{},"repo_seeds":{}})", | 908 | "format_a":"ND","format_b":"ND","repo_range":{},"repo_seeds":{}})", |
| 909 | - ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, false, true, 0, 0, {4, 8192}, {1280, 8192}, {4, 1280}, {4, 8192}, {1280, 8192}, {4, 1280}, false, 0, 0, 27, 65UL, | 909 | + ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, false, true, 0, 0, {4, 8192}, {1280, 8192}, {4, 1280}, {4, 8192}, {1280, 8192}, {4, 1280}, false, 0, 0, 27, 66UL, |
| 910 | "27 4 1280 8192 16 48 1344 16 48 336 8192 1 1 1 1 0 0 16908800 0 16 1 0 " | 910 | "27 4 1280 8192 16 48 1344 16 48 336 8192 1 1 1 1 0 0 16908800 0 16 1 0 " |
| 911 | }, | 911 | }, |
| 912 | { | 912 | { |
| @@ -933,7 +933,7 @@ static TilingTestParam ascend950_cases_params[] = { | |||
| 933 | "block_dim":{"CORE_NUM":30 ,"vector_core_cnt": 60},"corerect_range_flag":null,"dynamic_mode":"dynamic_mkn", "fused_double_operand_num": 0, | 933 | "block_dim":{"CORE_NUM":30 ,"vector_core_cnt": 60},"corerect_range_flag":null,"dynamic_mode":"dynamic_mkn", "fused_double_operand_num": 0, |
| 934 | "hardware_info": {"BT_SIZE": 4096, "load3d_constraints": "unknown", "Intrinsic_fix_pipe_l0c2out": true, "Intrinsic_data_move_l12ub": false, "Intrinsic_data_move_l0c2ub": false, "Intrinsic_data_move_l12bt": true, "Intrinsic_data_move_out2l1_nd2nz": true, "UB_SIZE": 253952, "L2_SIZE": 134217728, "L1_SIZE": 524288, "L0A_SIZE": 65536, "L0B_SIZE": 65536, "L0C_SIZE": 262144, "CORE_NUM": 32, "vector_core_cnt": 64, "socVersion": "Ascend950" }, | 934 | "hardware_info": {"BT_SIZE": 4096, "load3d_constraints": "unknown", "Intrinsic_fix_pipe_l0c2out": true, "Intrinsic_data_move_l12ub": false, "Intrinsic_data_move_l0c2ub": false, "Intrinsic_data_move_l12bt": true, "Intrinsic_data_move_out2l1_nd2nz": true, "UB_SIZE": 253952, "L2_SIZE": 134217728, "L1_SIZE": 524288, "L0A_SIZE": 65536, "L0B_SIZE": 65536, "L0C_SIZE": 262144, "CORE_NUM": 32, "vector_core_cnt": 64, "socVersion": "Ascend950" }, |
| 935 | "format_a":"ND","format_b":"ND","repo_range":{},"repo_seeds":{}})", | 935 | "format_a":"ND","format_b":"ND","repo_range":{},"repo_seeds":{}})", |
| 936 | - ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, false, true, 0, 0, {48, 953}, {3306, 953}, {48, 3306}, {48, 953}, {3306, 953}, {48, 3306}, false, 0, 0, 30, 65UL, | 936 | + ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, false, true, 0, 0, {48, 953}, {3306, 953}, {48, 3306}, {48, 953}, {3306, 953}, {48, 3306}, false, 0, 0, 30, 66UL, |
| 937 | "30 48 3306 953 48 112 576 48 112 144 953 1 1 1 1 0 0 16908800 0 48 1 0 " | 937 | "30 48 3306 953 48 112 576 48 112 144 953 1 1 1 1 0 0 16908800 0 48 1 0 " |
| 938 | }, | 938 | }, |
| 939 | // { | 939 | // { |
| @@ -951,7 +951,7 @@ static TilingTestParam ascend950_cases_params[] = { | |||
| 951 | "block_dim":{"CORE_NUM":30 ,"vector_core_cnt": 60},"corerect_range_flag":null,"dynamic_mode":"dynamic_mkn", "fused_double_operand_num": 0, | 951 | "block_dim":{"CORE_NUM":30 ,"vector_core_cnt": 60},"corerect_range_flag":null,"dynamic_mode":"dynamic_mkn", "fused_double_operand_num": 0, |
| 952 | "hardware_info": {"BT_SIZE": 4096, "load3d_constraints": "unknown", "Intrinsic_fix_pipe_l0c2out": true, "Intrinsic_data_move_l12ub": false, "Intrinsic_data_move_l0c2ub": false, "Intrinsic_data_move_l12bt": true, "Intrinsic_data_move_out2l1_nd2nz": true, "UB_SIZE": 253952, "L2_SIZE": 134217728, "L1_SIZE": 524288, "L0A_SIZE": 65536, "L0B_SIZE": 65536, "L0C_SIZE": 262144, "CORE_NUM": 32, "vector_core_cnt": 64, "socVersion": "Ascend950" }, | 952 | "hardware_info": {"BT_SIZE": 4096, "load3d_constraints": "unknown", "Intrinsic_fix_pipe_l0c2out": true, "Intrinsic_data_move_l12ub": false, "Intrinsic_data_move_l0c2ub": false, "Intrinsic_data_move_l12bt": true, "Intrinsic_data_move_out2l1_nd2nz": true, "UB_SIZE": 253952, "L2_SIZE": 134217728, "L1_SIZE": 524288, "L0A_SIZE": 65536, "L0B_SIZE": 65536, "L0C_SIZE": 262144, "CORE_NUM": 32, "vector_core_cnt": 64, "socVersion": "Ascend950" }, |
| 953 | "format_a":"ND","format_b":"ND","repo_range":{},"repo_seeds":{}})", | 953 | "format_a":"ND","format_b":"ND","repo_range":{},"repo_seeds":{}})", |
| 954 | - ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, false, true, 0, 0, {190, 16}, {2130, 16}, {190, 2130}, {190, 16}, {2130, 16}, {190, 2130}, false, 0, 0, 30, 65UL, | 954 | + ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, false, true, 0, 0, {190, 16}, {2130, 16}, {190, 2130}, {190, 16}, {2130, 16}, {190, 2130}, false, 0, 0, 30, 66UL, |
| 955 | "30 190 2130 16 96 144 64 96 144 16 16 1 1 1 1 0 0 16908800 0 96 1 0 " | 955 | "30 190 2130 16 96 144 64 96 144 16 16 1 1 1 1 0 0 16908800 0 96 1 0 " |
| 956 | }, | 956 | }, |
| 957 | { | 957 | { |
| @@ -960,7 +960,7 @@ static TilingTestParam ascend950_cases_params[] = { | |||
| 960 | "block_dim":{"CORE_NUM":32, "vector_core_cnt": 64},"corerect_range_flag":null,"dynamic_mode":"dynamic_mkn", "fused_double_operand_num": 0, | 960 | "block_dim":{"CORE_NUM":32, "vector_core_cnt": 64},"corerect_range_flag":null,"dynamic_mode":"dynamic_mkn", "fused_double_operand_num": 0, |
| 961 | "hardware_info": {"BT_SIZE": 4096, "load3d_constraints": "unknown", "Intrinsic_fix_pipe_l0c2out": true, "Intrinsic_data_move_l12ub": false, "Intrinsic_data_move_l0c2ub": false, "Intrinsic_data_move_l12bt": true, "Intrinsic_data_move_out2l1_nd2nz": true, "UB_SIZE": 253952, "L2_SIZE": 134217728, "L1_SIZE": 524288, "L0A_SIZE": 65536, "L0B_SIZE": 65536, "L0C_SIZE": 262144, "CORE_NUM": 32, "vector_core_cnt": 64, "socVersion": "Ascend950" }, | 961 | "hardware_info": {"BT_SIZE": 4096, "load3d_constraints": "unknown", "Intrinsic_fix_pipe_l0c2out": true, "Intrinsic_data_move_l12ub": false, "Intrinsic_data_move_l0c2ub": false, "Intrinsic_data_move_l12bt": true, "Intrinsic_data_move_out2l1_nd2nz": true, "UB_SIZE": 253952, "L2_SIZE": 134217728, "L1_SIZE": 524288, "L0A_SIZE": 65536, "L0B_SIZE": 65536, "L0C_SIZE": 262144, "CORE_NUM": 32, "vector_core_cnt": 64, "socVersion": "Ascend950" }, |
| 962 | "format_a":"ND","format_b":"ND","repo_range":{},"repo_seeds":{}})", | 962 | "format_a":"ND","format_b":"ND","repo_range":{},"repo_seeds":{}})", |
| 963 | - ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, false, true, 0, 0, {304, 112}, {3152, 112}, {304, 3152}, {304, 112}, {3152, 112}, {304, 3152}, false, 0, 0, 32, 65UL, | 963 | + ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, false, true, 0, 0, {304, 112}, {3152, 112}, {304, 3152}, {304, 112}, {3152, 112}, {304, 3152}, false, 0, 0, 32, 66UL, |
| 964 | "32 304 3152 112 160 208 256 160 208 64 112 1 1 1 1 0 0 16843264 0 160 1 0 " | 964 | "32 304 3152 112 160 208 256 160 208 64 112 1 1 1 1 0 0 16843264 0 160 1 0 " |
| 965 | }, | 965 | }, |
| 966 | { | 966 | { |
| @@ -1033,7 +1033,7 @@ static TilingTestParam ascend950_cases_params[] = { | |||
| 1033 | "block_dim":{"CORE_NUM":32, "vector_core_cnt": 64},"corerect_range_flag":null,"dynamic_mode":"dynamic_mkn", "fused_double_operand_num": 0, | 1033 | "block_dim":{"CORE_NUM":32, "vector_core_cnt": 64},"corerect_range_flag":null,"dynamic_mode":"dynamic_mkn", "fused_double_operand_num": 0, |
| 1034 | "hardware_info": {"BT_SIZE": 4096, "load3d_constraints": "unknown", "Intrinsic_fix_pipe_l0c2out": true, "Intrinsic_data_move_l12ub": false, "Intrinsic_data_move_l0c2ub": false, "Intrinsic_data_move_l12bt": true, "Intrinsic_data_move_out2l1_nd2nz": true, "UB_SIZE": 253952, "L2_SIZE": 134217728, "L1_SIZE": 524288, "L0A_SIZE": 65536, "L0B_SIZE": 65536, "L0C_SIZE": 262144, "CORE_NUM": 32, "vector_core_cnt": 64, "socVersion": "Ascend950" }, | 1034 | "hardware_info": {"BT_SIZE": 4096, "load3d_constraints": "unknown", "Intrinsic_fix_pipe_l0c2out": true, "Intrinsic_data_move_l12ub": false, "Intrinsic_data_move_l0c2ub": false, "Intrinsic_data_move_l12bt": true, "Intrinsic_data_move_out2l1_nd2nz": true, "UB_SIZE": 253952, "L2_SIZE": 134217728, "L1_SIZE": 524288, "L0A_SIZE": 65536, "L0B_SIZE": 65536, "L0C_SIZE": 262144, "CORE_NUM": 32, "vector_core_cnt": 64, "socVersion": "Ascend950" }, |
| 1035 | "format_a":"ND","format_b":"ND","repo_range":{},"repo_seeds":{}})", | 1035 | "format_a":"ND","format_b":"ND","repo_range":{},"repo_seeds":{}})", |
| 1036 | - ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, false, true, 0, 0, {560, 953}, {80, 953}, {560, 80}, {560, 953}, {80, 953}, {560, 80}, false, 0, 0, 24, 65UL, | 1036 | + ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, false, true, 0, 0, {560, 953}, {80, 953}, {560, 80}, {560, 953}, {80, 953}, {560, 80}, false, 0, 0, 24, 66UL, |
| 1037 | "24 560 80 953 48 48 1344 48 48 336 953 1 1 1 1 0 0 16908800 0 48 1 0 " | 1037 | "24 560 80 953 48 48 1344 48 48 336 953 1 1 1 1 0 0 16908800 0 48 1 0 " |
| 1038 | }, | 1038 | }, |
| 1039 | { | 1039 | { |
| @@ -1042,7 +1042,7 @@ static TilingTestParam ascend950_cases_params[] = { | |||
| 1042 | "block_dim":{"CORE_NUM":32, "vector_core_cnt": 64},"corerect_range_flag":null,"dynamic_mode":"dynamic_mkn", "fused_double_operand_num": 0, | 1042 | "block_dim":{"CORE_NUM":32, "vector_core_cnt": 64},"corerect_range_flag":null,"dynamic_mode":"dynamic_mkn", "fused_double_operand_num": 0, |
| 1043 | "hardware_info": {"BT_SIZE": 4096, "load3d_constraints": "unknown", "Intrinsic_fix_pipe_l0c2out": true, "Intrinsic_data_move_l12ub": false, "Intrinsic_data_move_l0c2ub": false, "Intrinsic_data_move_l12bt": true, "Intrinsic_data_move_out2l1_nd2nz": true, "UB_SIZE": 253952, "L2_SIZE": 134217728, "L1_SIZE": 524288, "L0A_SIZE": 65536, "L0B_SIZE": 65536, "L0C_SIZE": 262144, "CORE_NUM": 32, "vector_core_cnt": 64, "socVersion": "Ascend950" }, | 1043 | "hardware_info": {"BT_SIZE": 4096, "load3d_constraints": "unknown", "Intrinsic_fix_pipe_l0c2out": true, "Intrinsic_data_move_l12ub": false, "Intrinsic_data_move_l0c2ub": false, "Intrinsic_data_move_l12bt": true, "Intrinsic_data_move_out2l1_nd2nz": true, "UB_SIZE": 253952, "L2_SIZE": 134217728, "L1_SIZE": 524288, "L0A_SIZE": 65536, "L0B_SIZE": 65536, "L0C_SIZE": 262144, "CORE_NUM": 32, "vector_core_cnt": 64, "socVersion": "Ascend950" }, |
| 1044 | "format_a":"ND","format_b":"ND","repo_range":{},"repo_seeds":{}})", | 1044 | "format_a":"ND","format_b":"ND","repo_range":{},"repo_seeds":{}})", |
| 1045 | - ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, true, false, 0, 0, {32, 640}, {32, 480}, {640, 480}, {32, 640}, {32, 480}, {640, 480}, false, 0, 0, 32, 17UL, | 1045 | + ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, true, false, 0, 0, {32, 640}, {32, 480}, {640, 480}, {32, 640}, {32, 480}, {640, 480}, false, 0, 0, 32, 18UL, |
| 1046 | "32 640 480 32 80 128 128 80 128 32 32 1 1 1 1 0 0 16908800 0 80 1 0 " | 1046 | "32 640 480 32 80 128 128 80 128 32 32 1 1 1 1 0 0 16908800 0 80 1 0 " |
| 1047 | }, | 1047 | }, |
| 1048 | { | 1048 | { |
| @@ -1051,7 +1051,7 @@ static TilingTestParam ascend950_cases_params[] = { | |||
| 1051 | "block_dim":{"CORE_NUM":32, "vector_core_cnt": 64},"corerect_range_flag":null,"dynamic_mode":"dynamic_mkn", "fused_double_operand_num": 0, | 1051 | "block_dim":{"CORE_NUM":32, "vector_core_cnt": 64},"corerect_range_flag":null,"dynamic_mode":"dynamic_mkn", "fused_double_operand_num": 0, |
| 1052 | "hardware_info": {"BT_SIZE": 4096, "load3d_constraints": "unknown", "Intrinsic_fix_pipe_l0c2out": true, "Intrinsic_data_move_l12ub": false, "Intrinsic_data_move_l0c2ub": false, "Intrinsic_data_move_l12bt": true, "Intrinsic_data_move_out2l1_nd2nz": true, "UB_SIZE": 253952, "L2_SIZE": 134217728, "L1_SIZE": 524288, "L0A_SIZE": 65536, "L0B_SIZE": 65536, "L0C_SIZE": 262144, "CORE_NUM": 32, "vector_core_cnt": 64, "socVersion": "Ascend950" }, | 1052 | "hardware_info": {"BT_SIZE": 4096, "load3d_constraints": "unknown", "Intrinsic_fix_pipe_l0c2out": true, "Intrinsic_data_move_l12ub": false, "Intrinsic_data_move_l0c2ub": false, "Intrinsic_data_move_l12bt": true, "Intrinsic_data_move_out2l1_nd2nz": true, "UB_SIZE": 253952, "L2_SIZE": 134217728, "L1_SIZE": 524288, "L0A_SIZE": 65536, "L0B_SIZE": 65536, "L0C_SIZE": 262144, "CORE_NUM": 32, "vector_core_cnt": 64, "socVersion": "Ascend950" }, |
| 1053 | "format_a":"ND","format_b":"ND","repo_range":{},"repo_seeds":{}})", | 1053 | "format_a":"ND","format_b":"ND","repo_range":{},"repo_seeds":{}})", |
| 1054 | - ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, false, true, 0, 0, {512, 1024}, {16, 1024}, {512, 1024}, {512, 1024}, {16, 1024}, {512, 1024}, false, 0, 0, 32, 65UL, | 1054 | + ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, false, true, 0, 0, {512, 1024}, {16, 1024}, {512, 1024}, {512, 1024}, {16, 1024}, {512, 1024}, false, 0, 0, 32, 66UL, |
| 1055 | "32 512 16 1024 16 16 2048 16 16 512 1024 1 1 1 1 0 0 16908800 0 16 1 0 ", ge::DT_FLOAT, ge::DT_FLOAT | 1055 | "32 512 16 1024 16 16 2048 16 16 512 1024 1 1 1 1 0 0 16908800 0 16 1 0 ", ge::DT_FLOAT, ge::DT_FLOAT |
| 1056 | }, | 1056 | }, |
| 1057 | { | 1057 | { |
| @@ -1060,7 +1060,7 @@ static TilingTestParam ascend950_cases_params[] = { | |||
| 1060 | "block_dim":{"CORE_NUM":32, "vector_core_cnt": 64},"corerect_range_flag":null,"dynamic_mode":"dynamic_mkn", "fused_double_operand_num": 0, | 1060 | "block_dim":{"CORE_NUM":32, "vector_core_cnt": 64},"corerect_range_flag":null,"dynamic_mode":"dynamic_mkn", "fused_double_operand_num": 0, |
| 1061 | "hardware_info": {"BT_SIZE": 4096, "load3d_constraints": "unknown", "Intrinsic_fix_pipe_l0c2out": true, "Intrinsic_data_move_l12ub": false, "Intrinsic_data_move_l0c2ub": false, "Intrinsic_data_move_l12bt": true, "Intrinsic_data_move_out2l1_nd2nz": true, "UB_SIZE": 253952, "L2_SIZE": 134217728, "L1_SIZE": 524288, "L0A_SIZE": 65536, "L0B_SIZE": 65536, "L0C_SIZE": 262144, "CORE_NUM": 32, "vector_core_cnt": 64, "socVersion": "Ascend950" }, | 1061 | "hardware_info": {"BT_SIZE": 4096, "load3d_constraints": "unknown", "Intrinsic_fix_pipe_l0c2out": true, "Intrinsic_data_move_l12ub": false, "Intrinsic_data_move_l0c2ub": false, "Intrinsic_data_move_l12bt": true, "Intrinsic_data_move_out2l1_nd2nz": true, "UB_SIZE": 253952, "L2_SIZE": 134217728, "L1_SIZE": 524288, "L0A_SIZE": 65536, "L0B_SIZE": 65536, "L0C_SIZE": 262144, "CORE_NUM": 32, "vector_core_cnt": 64, "socVersion": "Ascend950" }, |
| 1062 | "format_a":"ND","format_b":"ND","repo_range":{},"repo_seeds":{}})", | 1062 | "format_a":"ND","format_b":"ND","repo_range":{},"repo_seeds":{}})", |
| 1063 | - ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, true, false, 0, 0, {300, 560}, {300, 20}, {560, 20}, {300, 560}, {300, 20}, {560, 20}, false, 0, 0, 18, 17UL, | 1063 | + ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, true, false, 0, 0, {300, 560}, {300, 20}, {560, 20}, {300, 560}, {300, 20}, {560, 20}, false, 0, 0, 18, 18UL, |
| 1064 | "18 560 20 300 32 32 1024 32 32 256 300 1 1 1 1 0 0 16908800 0 32 1 0 ", ge::DT_FLOAT, ge::DT_FLOAT | 1064 | "18 560 20 300 32 32 1024 32 32 256 300 1 1 1 1 0 0 16908800 0 32 1 0 ", ge::DT_FLOAT, ge::DT_FLOAT |
| 1065 | }, | 1065 | }, |
| 1066 | { | 1066 | { |
| @@ -1069,7 +1069,7 @@ static TilingTestParam ascend950_cases_params[] = { | |||
| 1069 | "block_dim":{"CORE_NUM":30 ,"vector_core_cnt": 60},"corerect_range_flag":null,"dynamic_mode":"dynamic_mkn", "fused_double_operand_num": 0, | 1069 | "block_dim":{"CORE_NUM":30 ,"vector_core_cnt": 60},"corerect_range_flag":null,"dynamic_mode":"dynamic_mkn", "fused_double_operand_num": 0, |
| 1070 | "hardware_info": {"BT_SIZE": 4096, "load3d_constraints": "unknown", "Intrinsic_fix_pipe_l0c2out": true, "Intrinsic_data_move_l12ub": false, "Intrinsic_data_move_l0c2ub": false, "Intrinsic_data_move_l12bt": true, "Intrinsic_data_move_out2l1_nd2nz": true, "UB_SIZE": 253952, "L2_SIZE": 134217728, "L1_SIZE": 524288, "L0A_SIZE": 65536, "L0B_SIZE": 65536, "L0C_SIZE": 262144, "CORE_NUM": 32, "vector_core_cnt": 64, "socVersion": "Ascend950" }, | 1070 | "hardware_info": {"BT_SIZE": 4096, "load3d_constraints": "unknown", "Intrinsic_fix_pipe_l0c2out": true, "Intrinsic_data_move_l12ub": false, "Intrinsic_data_move_l0c2ub": false, "Intrinsic_data_move_l12bt": true, "Intrinsic_data_move_out2l1_nd2nz": true, "UB_SIZE": 253952, "L2_SIZE": 134217728, "L1_SIZE": 524288, "L0A_SIZE": 65536, "L0B_SIZE": 65536, "L0C_SIZE": 262144, "CORE_NUM": 32, "vector_core_cnt": 64, "socVersion": "Ascend950" }, |
| 1071 | "format_a":"ND","format_b":"ND","repo_range":{},"repo_seeds":{}})", | 1071 | "format_a":"ND","format_b":"ND","repo_range":{},"repo_seeds":{}})", |
| 1072 | - ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, false, true, 0, 0, {944, 48}, {80, 48}, {944, 80}, {944, 48}, {80, 48}, {944, 80}, false, 0, 0, 30, 65UL, | 1072 | + ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, false, true, 0, 0, {944, 48}, {80, 48}, {944, 80}, {944, 48}, {80, 48}, {944, 80}, false, 0, 0, 30, 66UL, |
| 1073 | "30 944 80 48 64 48 192 64 48 48 48 1 1 1 1 0 0 16908800 0 64 1 0 " | 1073 | "30 944 80 48 64 48 192 64 48 48 48 1 1 1 1 0 0 16908800 0 64 1 0 " |
| 1074 | }, | 1074 | }, |
| 1075 | { | 1075 | { |
| @@ -1078,7 +1078,7 @@ static TilingTestParam ascend950_cases_params[] = { | |||
| 1078 | "block_dim":{"CORE_NUM":32, "vector_core_cnt": 64},"corerect_range_flag":null,"dynamic_mode":"dynamic_mkn", "fused_double_operand_num": 0, | 1078 | "block_dim":{"CORE_NUM":32, "vector_core_cnt": 64},"corerect_range_flag":null,"dynamic_mode":"dynamic_mkn", "fused_double_operand_num": 0, |
| 1079 | "hardware_info": {"BT_SIZE": 4096, "load3d_constraints": "unknown", "Intrinsic_fix_pipe_l0c2out": true, "Intrinsic_data_move_l12ub": false, "Intrinsic_data_move_l0c2ub": false, "Intrinsic_data_move_l12bt": true, "Intrinsic_data_move_out2l1_nd2nz": true, "UB_SIZE": 253952, "L2_SIZE": 134217728, "L1_SIZE": 524288, "L0A_SIZE": 65536, "L0B_SIZE": 65536, "L0C_SIZE": 262144, "CORE_NUM": 32, "vector_core_cnt": 64, "socVersion": "Ascend950" }, | 1079 | "hardware_info": {"BT_SIZE": 4096, "load3d_constraints": "unknown", "Intrinsic_fix_pipe_l0c2out": true, "Intrinsic_data_move_l12ub": false, "Intrinsic_data_move_l0c2ub": false, "Intrinsic_data_move_l12bt": true, "Intrinsic_data_move_out2l1_nd2nz": true, "UB_SIZE": 253952, "L2_SIZE": 134217728, "L1_SIZE": 524288, "L0A_SIZE": 65536, "L0B_SIZE": 65536, "L0C_SIZE": 262144, "CORE_NUM": 32, "vector_core_cnt": 64, "socVersion": "Ascend950" }, |
| 1080 | "format_a":"ND","format_b":"ND","repo_range":{},"repo_seeds":{}})", | 1080 | "format_a":"ND","format_b":"ND","repo_range":{},"repo_seeds":{}})", |
| 1081 | - ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, true, false, 0, 0, {1024, 1022}, {1024, 25}, {1022, 25}, {1024, 1022}, {1024, 25}, {1022, 25}, false, 0, 0, 32, 17UL, | 1081 | + ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, true, false, 0, 0, {1024, 1022}, {1024, 25}, {1022, 25}, {1024, 1022}, {1024, 25}, {1022, 25}, false, 0, 0, 32, 18UL, |
| 1082 | "32 1022 25 1024 32 32 1024 32 32 256 1024 1 1 1 1 0 0 16908800 0 32 1 0 ", ge::DT_FLOAT, ge::DT_FLOAT | 1082 | "32 1022 25 1024 32 32 1024 32 32 256 1024 1 1 1 1 0 0 16908800 0 32 1 0 ", ge::DT_FLOAT, ge::DT_FLOAT |
| 1083 | }, | 1083 | }, |
| 1084 | { | 1084 | { |
| @@ -1115,7 +1115,7 @@ static TilingTestParam ascend950_cases_params[] = { | |||
| 1115 | "block_dim":{"CORE_NUM":32, "vector_core_cnt": 64},"corerect_range_flag":null,"dynamic_mode":"dynamic_mkn", "fused_double_operand_num": 0, | 1115 | "block_dim":{"CORE_NUM":32, "vector_core_cnt": 64},"corerect_range_flag":null,"dynamic_mode":"dynamic_mkn", "fused_double_operand_num": 0, |
| 1116 | "hardware_info": {"BT_SIZE": 4096, "load3d_constraints": "unknown", "Intrinsic_fix_pipe_l0c2out": true, "Intrinsic_data_move_l12ub": false, "Intrinsic_data_move_l0c2ub": false, "Intrinsic_data_move_l12bt": true, "Intrinsic_data_move_out2l1_nd2nz": true, "UB_SIZE": 253952, "L2_SIZE": 134217728, "L1_SIZE": 524288, "L0A_SIZE": 65536, "L0B_SIZE": 65536, "L0C_SIZE": 262144, "CORE_NUM": 32, "vector_core_cnt": 64, "socVersion": "Ascend950" }, | 1116 | "hardware_info": {"BT_SIZE": 4096, "load3d_constraints": "unknown", "Intrinsic_fix_pipe_l0c2out": true, "Intrinsic_data_move_l12ub": false, "Intrinsic_data_move_l0c2ub": false, "Intrinsic_data_move_l12bt": true, "Intrinsic_data_move_out2l1_nd2nz": true, "UB_SIZE": 253952, "L2_SIZE": 134217728, "L1_SIZE": 524288, "L0A_SIZE": 65536, "L0B_SIZE": 65536, "L0C_SIZE": 262144, "CORE_NUM": 32, "vector_core_cnt": 64, "socVersion": "Ascend950" }, |
| 1117 | "format_a":"ND","format_b":"ND","repo_range":{},"repo_seeds":{}})", | 1117 | "format_a":"ND","format_b":"ND","repo_range":{},"repo_seeds":{}})", |
| 1118 | - ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, false, false, 0, 0, {1188, 64}, {64, 2524}, {1188, 2524}, {1188, 64}, {64, 2524}, {1188, 2524}, false, 0, 0, 32, 1UL, | 1118 | + ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, ge::FORMAT_ND, false, false, 0, 0, {1188, 64}, {64, 2524}, {1188, 2524}, {1188, 64}, {64, 2524}, {1188, 2524}, false, 0, 0, 32, 2UL, |
| 1119 | "32 1188 2524 64 208 256 128 208 256 32 64 1 1 1 1 0 0 16843264 0 208 1 0 ", ge::DT_FLOAT, ge::DT_FLOAT | 1119 | "32 1188 2524 64 208 256 128 208 256 32 64 1 1 1 1 0 0 16843264 0 208 1 0 ", ge::DT_FLOAT, ge::DT_FLOAT |
| 1120 | }, | 1120 | }, |
| 1121 | { | 1121 | { |