Skip to content

clamp.mlir test fails on vulkan #1851

Closed

Description

@hanhanW

Even we get non-i32 bitwidth emulation support, the clamp.mlir still fails. This is the issue for tracking it.

Expected equality of these values. Contents does not match.
lhs:
4xi8=10 4 8 10
rhs:
4xi8=0 4 8 10

Expected equality of these values. Contents does not match.
lhs:
4xi16=10 4 8 10
rhs:
4xi16=0 4 8 10

Activity

  1. added
    bug 🐞
    codegen
    on May 8, 2020
  2. self-assigned this
    on May 8, 2020
  3. hanhanW commented on May 8, 2020

    @hanhanW
    ContributorAuthor

    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.

  4. antiagainst commented on May 8, 2020

    @antiagainst
    Member

    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?

  5. hanhanW commented on May 8, 2020

    @hanhanW
    ContributorAuthor

    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...

  6. antiagainst commented on May 8, 2020

    @antiagainst
    Member

    Oh never mind then. I've that set up; let me check later. :)

  7. antiagainst commented on May 8, 2020

    @antiagainst
    Member

    Tested: this also fails on real GPU. So there is a bug in our pipeline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug 🐞codegen

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions