Repository navigation
pto ir在特定shape执行结果错误 #1772
Unanswered
NengchaoPan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
背景:
1.运算公式
prod = a * b # a 是矩阵,b 是每行的标量 -> prod 是矩阵
div = c / prod # c 做分子
sel = where(prod!=0, div, prod)
y = sel * 5 # 写回 y
2.直接写__global__可以正常执行
3.用pto执行会结果错误
host_where.cpp
launch_where.cpp
run.sh
where_kernel.cpp
where_pto.py
README.md
All reactions