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

futhark test should output unflattened indices #1356

Closed
Munksgaard opened this issue May 24, 2021 · 0 comments
Closed

futhark test should output unflattened indices #1356

Munksgaard opened this issue May 24, 2021 · 0 comments

Comments

@Munksgaard
Copy link
Collaborator

Right now, when running futhark test, the mismatch indices are reported in the flattened representation. For instance:

$ futhark test --backend=opencl --no-tuning nw-blocked.fut
nw-blocked.fut:
Compiling with --backend=opencl:
Running compiled program:
Running ./nw-blocked:
Entry point: main; dataset: data/large.in:
nw-blocked.fut.main.0.actual and nw-blocked.fut.main.0.expected do not match:
Value (0,789762) expected -5672i32, got -5673i32
...and 358918 other mismatches.

The size of the input is 1537x1537, so the reported index 789762 actually corrensponds to (513, 1281), and should be reported as such.

@athas athas closed this as completed in a351b13 May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant