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
My guess is that we don't handle negative number well. clamp(0, -2, 10) -> 10, the negative number might be a huge positive number. I will take a look at it.
Interesting! Part is correct; part is wrong. This is a similar pattern I've seen for multiple dispatches. Are you testing this on SwiftShader? Could you do a quick check against real GPU?
I was testing with bazel test, so it's on SwiftShader by default I think. I haven't set up the environment for vulkan yet, so I can't do it in a quick way...
Activity
hanhanW commentedon May 8, 2020
My guess is that we don't handle negative number well. clamp(0, -2, 10) -> 10, the negative number might be a huge positive number. I will take a look at it.
antiagainst commentedon May 8, 2020
Interesting! Part is correct; part is wrong. This is a similar pattern I've seen for multiple dispatches. Are you testing this on SwiftShader? Could you do a quick check against real GPU?
hanhanW commentedon May 8, 2020
I was testing with
bazel test, so it's on SwiftShader by default I think. I haven't set up the environment for vulkan yet, so I can't do it in a quick way...antiagainst commentedon May 8, 2020
Oh never mind then. I've that set up; let me check later. :)
antiagainst commentedon May 8, 2020
Tested: this also fails on real GPU. So there is a bug in our pipeline.
Enalbe clamp.mlir and convert.mlir test on vulkan.
Enable clamp.mlir and convert.mlir test on vulkan.
Enable clamp.mlir and convert.mlir test on vulkan.
Enable clamp.mlir and convert.mlir test on vulkan.