You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
xla_ops/remainder.mlir test failing for NVIDIA GPUs #2500
This is the only failing test if running on NVIDIA GPUs. The problem is that we use OpSRem when converting to SPIR-V. According to the Vulkan's SPIR-V environment spec, it has undefined behavior if either operand is negative:
For the OpSRem and OpSMod instructions, if either operand is negative the result is undefined.
While the OpSRem and OpSMod instructions are supported by the Vulkan environment, they require non-negative values and thus do not enable additional functionality beyond what OpUMod provides.
So we need to emulate OpSRem with OpUMod and handle the sign by ourselves.
Activity
antiagainst commentedon Jul 13, 2020
https://reviews.llvm.org/D83679 for addressing this.
antiagainst commentedon Jul 13, 2020
Ooh, didn't notice #1995 before creating this one. Sorry about that! :)
antiagainst commentedon Jul 15, 2020
The fix is now propagated to
main. Closing this.