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

[VTA] add doc to tsim-example driver and update verilator env variable #3302

Merged
merged 8 commits into from
Jun 7, 2019
Merged

[VTA] add doc to tsim-example driver and update verilator env variable #3302

merged 8 commits into from
Jun 7, 2019

Conversation

vegaluisjose
Copy link
Member

No description provided.

@@ -15,6 +15,8 @@
# specific language governing permissions and limitations
# under the License.

export VERILATOR_INC_DIR = /usr/local/share/verilator/include
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be external to the Makefile IMO; and set by the user. See: https://docs.tvm.ai/install/from_source.html#tvm-package

I think we should make it clear in the instructions that this variable needs to be set by the user, when they install verilator.

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe just wrap the export in an ifndef

Copy link
Member Author

Choose a reason for hiding this comment

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

I see. I guess we could try to check if the path exists in the makefile then?.

I think having to setup more environment variables is a pain for the user.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think that hard coded paths will fail at some point depending on os, or package manager. Given that the user will need to install verilator themselves, this is part of the installation process. We just need to add a line saying to export blah.

Copy link
Member Author

@vegaluisjose vegaluisjose Jun 6, 2019

Choose a reason for hiding this comment

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

I just added something that test if path exist otherwise it won't build. We will add this to the documentation.

Copy link
Contributor

Choose a reason for hiding this comment

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

we should have a cascade of checks: check that the variable exists, if not, set to default path; check that the binary exists, else error out

Copy link
Member Author

Choose a reason for hiding this comment

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

Alright, I just added the cascade of checks for binary first then for the path.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks, it looks good except that we shouldn't use export in a Makefile. Instead can we use a ?= to set if not set?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@tmoreau89 tmoreau89 merged commit df16182 into apache:master Jun 7, 2019
@vegaluisjose vegaluisjose deleted the dev branch June 7, 2019 15:53
wweic pushed a commit to wweic/tvm that referenced this pull request Jun 26, 2019
apache#3302)

* add documentation and check for extension

* add env variable for verilator include

* fix typo

* this will test if path exist otherwise it won't buid

* check if verilator path and binary is set properly

* add ?

* remove export

* no longer needed
wweic pushed a commit to neo-ai/tvm that referenced this pull request Jun 27, 2019
apache#3302)

* add documentation and check for extension

* add env variable for verilator include

* fix typo

* this will test if path exist otherwise it won't buid

* check if verilator path and binary is set properly

* add ?

* remove export

* no longer needed
tqchen pushed a commit to tqchen/tvm that referenced this pull request Mar 29, 2020
apache#3302)

* add documentation and check for extension

* add env variable for verilator include

* fix typo

* this will test if path exist otherwise it won't buid

* check if verilator path and binary is set properly

* add ?

* remove export

* no longer needed
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 this pull request may close these issues.

3 participants