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

Missing parenthesis in generated code #8

Open
periscop opened this issue Jan 7, 2014 · 0 comments
Open

Missing parenthesis in generated code #8

periscop opened this issue Jan 7, 2014 · 0 comments
Labels

Comments

@periscop
Copy link
Owner

periscop commented Jan 7, 2014

(reported by Tobias Grosser)
pluto compiled durbin from polybench 3.2 crashes at execution

(explanation by Uday Bondhugula)
the reason is

There is a missing parenthesis in the generated code:

for (t3=t2;t3<=2_t2-1;t3++) {
y[-t2+t3][t2]=y[-t2+t3][t2-1]+alpha[t2]_y[t2- -t2+t3-1][t2-1];;
^^^^^
}

since the remappings are:

k = t2
i = t3-t2

It should've been "t2- (-t2+t3)-1]

Can you quickly look at the thread above? It should make sense to you quickly. Given this, why shouldn't the remappings be not generated as:

S8(t2, (t3-t2))

instead of

S8(t2, t3-t2);

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant