-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[TOPI] add injective scheduler for HLS backends #1553
Conversation
@tmoreau89 @comaniac @nishi-t Can you please review this PR? |
Not very familiar with the TOPI, but the code generation part looks good to me. |
Due to recent history change to master, we will need everyone to rebase against the current master, see #1394 we are sorry for the inconvenience |
ad71d27
to
dc6c2f5
Compare
Rebased. |
src/codegen/codegen_vhls.cc
Outdated
PrintExpr(op->a, os); | ||
os << ", "; | ||
PrintExpr(op->b, os); | ||
os << ')'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you introduce PrintBinaryExpr
to avoid boilerplate code for binary expression?
c.f. https://github.com/dmlc/tvm/blob/master/src/codegen/codegen_c.cc#L372
@nishi-t Done, thanks! |
@kazum Looks good to me. thanks |
Catching up on this PR. This seems sound to me, unifying code gen between HLS languages is the right approach. |
I approved the PR. @kazum could you rebase against master so we can merge it back? Thanks! |
44007db
to
cb74804
Compare
@tmoreau89 Rebased, thanks. :) |
This PR adds initial support for schedulers of HLS backends (e.g. SDAccel, AOCL). Optimization for performance and resource usage is a future work.
To pass tests, this PR also adds support for max, min, and some math operations to the SDAccel backend.