Add & test the remaining arithmetic operations for VecValue in ptodsl#919
Add & test the remaining arithmetic operations for VecValue in ptodsl#919liggest wants to merge 5 commits into
Conversation
There was a problem hiding this comment.
Code Review
This pull request implements basic vector arithmetic operations (addition, subtraction, and division) for surface values in the DSL, including their reflected counterparts. It also adds a JIT compilation test to verify that these operations lower correctly to MLIR vector instructions. There are no review comments, and I have no feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Codex Review该评论由 review 机器人自动更新。
SummaryReview failed at stage Findings未生成结构化 findings,因为 review 过程提前失败。 Log Tail |
| def __rmul__(self, other): | ||
| return _emit_vec_binary_op("mul", other, self) | ||
|
|
||
| def __truediv__(self, other): |
| mode="explicit", | ||
| insert_sync=False, | ||
| ) | ||
| def vec_value_arith_kernel( |
There was a problem hiding this comment.
标量核不是pto.Vec类型的目标场景,请使用SIMT kernel构造测例
ptodsl 中的 VecValue 类型只定义了乘法操作,这个 PR 简单补全了剩余的加、减操作(SIMT 中的向量除法不被 bisheng 支持),使得 ptodsl 在编译带有这些向量运算操作的 kernel 时不会报错,并添加了相应的测试