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

[BYOC][Verilator] add support to dynamically load hardware library #7286

Merged
merged 6 commits into from
Jan 22, 2021

Conversation

vegaluisjose
Copy link
Member

@tmoreau89
Copy link
Contributor

@tqchen I'd love some input on this if you have time to review

@@ -66,10 +68,43 @@ def offload(mod):
return mod


def verilator_app_path():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it's actually running in the CI (see https://ci.tlcpack.ai/blue/organizations/jenkins/tvm/detail/PR-7286/6/pipeline/255#step-340-log-91), would be better if we could enable testing this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @liangfu

Yeah that is the plan, once we merge this. The idea is to finally update that PR that we have open for CI.

Copy link
Contributor

@tmoreau89 tmoreau89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love the new dynamic load feature, the code below looks very clean.

with tvm.transform.PassContext(
        opt_level=3, config={"relay.ext.verilator.options": {"lib": lib}}
    ):

LGTM

@tmoreau89 tmoreau89 merged commit af9d1d2 into apache:main Jan 22, 2021
alexwong pushed a commit to alexwong/tvm that referenced this pull request Feb 11, 2021
…pache#7286)

* add files

* remove import

* remove os import

* reorder header

* fix header order cpplint

* lint fix
electriclilies pushed a commit to electriclilies/tvm that referenced this pull request Feb 18, 2021
…pache#7286)

* add files

* remove import

* remove os import

* reorder header

* fix header order cpplint

* lint fix
Lokiiiiii pushed a commit to Lokiiiiii/tvm that referenced this pull request Mar 2, 2021
…pache#7286)

* add files

* remove import

* remove os import

* reorder header

* fix header order cpplint

* lint fix
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Mar 2, 2021
…pache#7286)

* add files

* remove import

* remove os import

* reorder header

* fix header order cpplint

* lint fix
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.

4 participants