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

[TOPI] add injective scheduler for HLS backends #1553

Merged
merged 2 commits into from
Aug 9, 2018

Conversation

kazum
Copy link
Contributor

@kazum kazum commented Aug 3, 2018

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.

@kazum
Copy link
Contributor Author

kazum commented Aug 3, 2018

@tmoreau89 @comaniac @nishi-t Can you please review this PR?

@comaniac
Copy link
Contributor

comaniac commented Aug 3, 2018

Not very familiar with the TOPI, but the code generation part looks good to me.

@tqchen
Copy link
Member

tqchen commented Aug 4, 2018

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

@kazum kazum force-pushed the hls-injective-scheduler branch from ad71d27 to dc6c2f5 Compare August 4, 2018 18:17
@kazum
Copy link
Contributor Author

kazum commented Aug 4, 2018

Rebased.

PrintExpr(op->a, os);
os << ", ";
PrintExpr(op->b, os);
os << ')';
Copy link
Contributor

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

@kazum
Copy link
Contributor Author

kazum commented Aug 6, 2018

@nishi-t Done, thanks!

@nishi-t
Copy link
Contributor

nishi-t commented Aug 6, 2018

@kazum Looks good to me. thanks

@yzhliu yzhliu added topi python/tvm/topi status: need update need update based on feedbacks labels Aug 6, 2018
@tqchen tqchen assigned tqchen and tmoreau89 and unassigned tqchen Aug 8, 2018
@tmoreau89
Copy link
Contributor

Catching up on this PR. This seems sound to me, unifying code gen between HLS languages is the right approach.

@tmoreau89
Copy link
Contributor

I approved the PR. @kazum could you rebase against master so we can merge it back? Thanks!

@kazum kazum force-pushed the hls-injective-scheduler branch from 44007db to cb74804 Compare August 9, 2018 01:45
@kazum
Copy link
Contributor Author

kazum commented Aug 9, 2018

@tmoreau89 Rebased, thanks. :)

@tmoreau89 tmoreau89 merged commit 85483c3 into apache:master Aug 9, 2018
@tqchen tqchen added status: accepted and removed status: need update need update based on feedbacks topi python/tvm/topi labels Aug 9, 2018
@kazum kazum deleted the hls-injective-scheduler branch August 23, 2018 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants