Closed
[Bug-Report|缺陷反馈]: Uniform算子编译报错 #3763
刘奕哲Add on  27 days agoClosed at  26 days ago
刘奕哲
刘奕哲
27 days ago Create

Describe the current behavior / 问题描述 (Mandatory / 必填)

Uniform单算子用例编译报错

Environment / 环境信息 (Mandatory / 必填)

A5
cann-9.2.0

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

PyPTO_Test框架下执行如下用例
Uniform_L0_bf16_41_1_2272_alg3 [1,1,72] bf16 ND [0,1] [1,1,72] bf16 ND [1,1,72] [1,1,64] 1 0.000347018 [1319719300] [657949850,1311291551] [3]

Describe the expected behavior / 预期结果 (Mandatory / 必填)

Pass

/usr/local/Ascend/cann-9.3.0/include/pto/common/pto_tile.hpp:1704:5: error: static assertion failed due to requirement '((pto::BLayout)0 == BLayout::RowMajor && (pto::SLayout)0 == SLayout::NoneBox && Cols * sizeof(unsigned short) % (kPackedElementsPerByte * TileConfig::alignedSize) == 0) || ((pto::BLayout)0 == BLayout::ColMajor && (pto::SLayout)0 == SLayout::NoneBox && Rows * sizeof(unsigned short) % (kPackedElementsPerByte * TileConfig::alignedSize) == 0) || ((pto::SLayout)0 != SLayout::NoneBox) && (((Loc == TileType::Vec) || (512 == TileConfig::fractalMxSize) || (1 == 1) || (Rows % InnerRows == 0)) && Cols % InnerCols == 0)': BFractal_ is RowMajor and SFractal_ is NoneBox: Rows must be 32 bytes align,          BFractal_ is ColMajor and SFractal_ is NoneBox: Cols must be 32 bytes align,          SFractal_ in not NoneBox: Rows/Cols must be integer multiple of InnerRows/InnerCols.
    static_assert(
    ^
/usr/local/Ascend/cann-9.3.0/python/site-packages/pypto/lib/include/tileop/vector/uniform.h:100:20: note: in instantiation of template class 'pto::Tile<pto::TileType::Vec, unsigned short, 1, 168, pto::BLayout::RowMajor, -1, -1, pto::SLayout::NoneBox, 512, pto::PadValue::Null, pto::CompactMode::Null>' requested here
        TileUint16 uint16Tile(1, validSize);
                   ^
/data/operation/PyPTO_Test/output/20261102150514/3/pypto/output_20261102_150547_575716_huawei_0000791412/kernel_aicore/create_uniform_4dim_loop_idx_m_idx_Unroll1_PATH0_hiddenfunc_4_9647447089908988131_0_aiv.cpp:24:1: note: in instantiation of function template specialization 'TUniform<168, TileTensor<__bf16, TileOp::Layout<Std::tuple<unsigned long>, Std::tuple<Std::integral_constant<unsigned long, 1>>, Std::tuple<Std::integral_constant<unsigned long, 176>>>, Hardware::UB>, TileTensor<unsigned char, TileOp::Layout<Std::tuple<unsigned long>, Std::tuple<Std::integral_constant<unsigned long, 1>>, Std::tuple<Std::integral_constant<unsigned long, 1792>>>, Hardware::UB>>' requested here
TUniform<168>(ubTensor_0, ubTensor_1, 1321436199ULL, (uint64_t)((RUNTIME_COA_GET_PARAM(84))), 115754953ULL, 10);
^

Special notes for this issue/备注 (Optional / 选填)

likedislike
刘奕哲
刘奕哲
27 days ago Comments:

/assign

likedislike
CANN-robotCANN-robotCollaborators
27 days ago Assign Creeeeper as responsible person
刘奕哲刘奕哲
27 days ago Associated pull request
CANN-robotCANN-robotCollaborators
26 days ago Close issue
CANN-robotCANN-robotCollaborators
26 days ago Added label: resolved