Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect result with GPU backends #2051

Closed
athas opened this issue Nov 29, 2023 · 0 comments
Closed

Incorrect result with GPU backends #2051

athas opened this issue Nov 29, 2023 · 0 comments
Assignees

Comments

@athas
Copy link
Member

athas commented Nov 29, 2023

-- ==
-- compiled random input { [512][32]i32 } auto output

def main [n][m] (xss: [n][m]i32): []i32 =
  reduce (\(xs: []i32) ys ->
               loop zs = replicate m 0 for i < m do
                 let zs[i] = xs[i] + ys[i]
                 in zs
         )
         (replicate m 0)
         xss

Looks to be an error in code generation for non-commutative non-segmented reductions with array operands.

@athas athas self-assigned this Nov 29, 2023
athas added a commit that referenced this issue Nov 29, 2023
@athas athas closed this as completed in 5a2e404 Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant