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

Compilation error : internal error anout dimensions #2089

Closed
Alexandre-Da-Cunha-Guiborat opened this issue Jan 17, 2024 · 1 comment
Closed
Assignees

Comments

@Alexandre-Da-Cunha-Guiborat
Copy link

Alexandre-Da-Cunha-Guiborat commented Jan 17, 2024

Compilation error :

Type error after pass 'simplify':
In function entry_bench_rangeQuery2d_grid
When checking function body

In expression of statement
{defunc_0_map_res_12821 : ({}, [d<{(/) n 2}>_11508]i64)}
in body of last case
In expression of statement
{partition_res_r_13695 : ({}, [d<{(/) n 2}>_11508][64i64][j_m_i_11541]i64)}
2 indices given, but type of indexee has 3 dimension(s).

This error happens when compiling with a gpu backend such as opencl or cuda.

rangeQuery2d_grid.txt

@athas athas self-assigned this Jan 18, 2024
@athas
Copy link
Member

athas commented Jan 18, 2024

Reduced test case:

entry main =
  map2 (\is vs -> scatter (replicate 20 (replicate 30 true)) is vs)

@athas athas closed this as completed in cd50d40 Jan 18, 2024
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

2 participants