-
Notifications
You must be signed in to change notification settings - Fork 260
[spirv] Add binary arithmetic operations #2. #56
Conversation
Add binary operations such as: OpUdiv, OpSDiv, OpUMod, OpSRem, OpSMod.
antiagainst
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
|
@denis0x0D: The split sounds reasonable to me! |
|
@denis0x0D : Splitting it sounds like a good idea. |
|
@antiagainst @MaheshRavishankar thanks a lot for review! |
|
No, I am not seeing that failure. Let me try building this again and check it. |
|
I am not seeing this failure. @antiagainst : do you see this failure? @denis0x0D : Just to confirm, you are syncing to ToT? |
|
I wasn't able to reproduce the error either (ninja 1.8.2, GCC 7.4.0). What's your environment? |
|
@MaheshRavishankar thanks for the answer, I'm on the master branch now, here is my backtrace: it migth be something wrong with my env, but the strange thing is that all tests passes right before this commit. Thanks. |
|
thanks for the trace. So this segfaulting? Since the segfault seems to be happening in the autogenerated file, do you mind posting some of the code around the segfaulting line number? |
|
@antiagainst @MaheshRavishankar I'm building with Unix like MakeFile, not ninja, so, might be this is a problem. sorry for bothering you. |
|
@MaheshRavishankar it points to the line #129 on the fail |
|
Not a bother at all. If there is an issue, would rather fix it, so this is good to know. |
|
Dont think it is an issue with Ninja. What is your compiler? |
Add binary operations such as: OpUdiv, OpSDiv, OpUMod, OpSRem, OpSMod. Closes #56 COPYBARA_INTEGRATE_REVIEW=tensorflow/mlir#56 from denis0x0D:sandbox/bin_ops_int 4959325a693b4658b978a8b97f79b8237eb39764 PiperOrigin-RevId: 260961681
|
@MaheshRavishankar it fails on ninja too, I'm building with gcc 8.2.0 the stack-frame #14 points but if noone face it and CI tests passed, this is something wrong with my env. |
|
I think there might be an issue. the |
|
That's definitely the issue. Have a fix in flight. Thanks for bringing it to our attention. We use gcc 7.4.2. and that doesn't seem to result in a segfault. |
|
@MaheshRavishankar thanks for looking on this! |
|
Thanks @MaheshRavishankar for 32b81a8, which should have it fixed. @denis0x0D please try it out. |
|
@antiagainst @MaheshRavishankar works for me, thanks! |
This patch adds other binary arithmetic operations such as: OpUdiv, OpSDiv, OpUMod, OpSRem, OpSMod.
@antiagainst can you please take a look?
BTW, small question about other spirv operations such as logical operations.
In case of spirv all logical binary operations return scalar boolean or vector of boolean, would it be valid to split binary operation to arithmetic and logical like this: