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

ASTKernel.plan_cpu generates unused variables #107

Closed
blechta opened this issue Nov 30, 2016 · 3 comments · Fixed by #109
Closed

ASTKernel.plan_cpu generates unused variables #107

blechta opened this issue Nov 30, 2016 · 3 comments · Fixed by #109

Comments

@blechta
Copy link
Contributor

blechta commented Nov 30, 2016

No description provided.

@miklos1
Copy link
Contributor

miklos1 commented Nov 30, 2016

I would say it makes some TSFC-generated variables unused and leaves them there.

@FabioLuporini
Copy link
Contributor

These are probably easy to remove.

Reproducible example?

@blechta
Copy link
Contributor Author

blechta commented Dec 2, 2016

from ufl import *
from tsfc import compile_form
from coffee.plan import ASTKernel

element = FiniteElement("P", interval, 1)
u, v = TrialFunction(element), TestFunction(element)
a = inner(grad(u), grad(v))*dx
c = compile_form(a)
a = ASTKernel(c[0].ast)
a.plan_cpu(dict(optlevel='O2'))
print a.gencode()

Results in unused t3.

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

Successfully merging a pull request may close this issue.

3 participants