Skip to content

[Bug] trandom 将循环代码展开精度可以通过,用for循环则精度有问题 #338

@yuqiha

Description

@yuqiha

Component

PTO Dialect / ODS (include/PTO/IR)

Description

可跑通代码已提 pr (展开版本):#328
跑不通代码(for循环版本,其他地方基本上没有动): https://github.com/yuqiha/PTOAS_fork/blob/error_test/lib/TileOps/trandom_template.py

ST 代码建议使用pr中的,代码基本上就是将展开循环写成了for循环,所以应该模板没有问题,agent定位原因如下:

Image

Reproduction (minimal)

python3 test/tilelang_st/script/run_st.py -r sim -v a5 -t trandom &> ST_tset.log

Expected behavior

pass

Actual behavior / error logs

[ERROR] Mismatch: max diff=4232234439.0 at flat idx=909 (golden=-2121847184.0, output=2110387255.0)
[ERROR] int32_4x256: compare failed

Git commit

e5d45dedaa9fa15de299e8ddbdb6e07b7f50e27d

Host platform

None

Target Ascend arch (if relevant)

None

PTOAS build level (if relevant)

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions