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

Internal compile error. #1490

Closed
ianmbloom opened this issue Oct 15, 2021 · 4 comments
Closed

Internal compile error. #1490

ianmbloom opened this issue Oct 15, 2021 · 4 comments

Comments

@ianmbloom
Copy link

Internal compiler error.
Please report this at https://github.com/diku-dk/futhark/issues.
Type error after pass 'simplify':
In function searchUvTree_6393
When checking function body
In expression of statement
{defunc_1_map_res_43130 : ({}, [s_39965]f32),
defunc_1_map_res_43131 : ({}, [s_39965]f32),
defunc_1_map_res_43132 : ({}, [s_39965]f32),
defunc_1_map_res_43133 : ({}, [s_39965]f32),
defunc_1_map_res_43134 : ({}, [s_39965]f32),
defunc_1_map_res_43135 : ({}, [s_39965]f32)}
In expression of statement
{rootStack_res_43157 : ({}, i64),
rootStack_res_43158 : ({}, [x_44340]i64)}
Use of unknown variable rootStack_arg_43156.

This occurs when I'm compiling this repository: https://github.com/ianmbloom/futharkTreeExample

@ianmbloom
Copy link
Author

I believe this problem has something to do with me, misusing uniqueness types somehow.

@ianmbloom
Copy link
Author

It looks like I solved this by making the originating vector of the uniqueness type have a set size so the line:
let newStack 't (i:t) (lg:i64):(i64,[]t) = (0,replicate (lg+1) i)
became:
let newStack 't (i:t) (lg:i64):(i64,[lg]t) = (0,replicate lg i)

@athas
Copy link
Member

athas commented Oct 15, 2021

It's not about uniqueness; it's something else. I'll figure it out.

@athas
Copy link
Member

athas commented Oct 15, 2021

OK, it's a little about uniqueness, but not because you are doing anything wrong.

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