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

[µTVM] Avoid use of builtin math functions #6630

Merged
merged 5 commits into from
Oct 8, 2020

Conversation

areusch
Copy link
Contributor

@areusch areusch commented Oct 5, 2020

A couple of changes here with the goal of fixing undefined reference to \expf'` errors in µTVM generated code.

  • Enable -Werror in µTVM compilation flow. Ensures that all compiler warnings are addressed.
  • Fix host debugger tooling--broken by bad pylint fixing in µTVM RPC server and Part 1 of AutoTVM compilation infrastructure #6334
  • Add -fno-builtin when compiling generated code to avoid using builtin libc functions.
  • Emit #include <math.h> to avoid use of builtin compiler math functions.
  • Add a unit test that fails when said include is missing.

cc @tqchen @tmoreau89 @tom-gall @u99127

 - allows use of -Werror with microTVM builds.
 - some typos. still need a unit test here but that is complex.
 - always codegen with math.h
 - add unit test
@tqchen tqchen merged commit 1fc47cc into apache:master Oct 8, 2020
TusharKanekiDey pushed a commit to TusharKanekiDey/tvm that referenced this pull request Oct 13, 2020
TusharKanekiDey pushed a commit to TusharKanekiDey/tvm that referenced this pull request Oct 14, 2020
TusharKanekiDey pushed a commit to TusharKanekiDey/tvm that referenced this pull request Oct 15, 2020
TusharKanekiDey pushed a commit to TusharKanekiDey/tvm that referenced this pull request Oct 16, 2020
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Oct 19, 2020
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.

2 participants