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

Switch CRC-CCITT libraries #6499

Merged
merged 15 commits into from
Sep 17, 2020
Merged

Switch CRC-CCITT libraries #6499

merged 15 commits into from
Sep 17, 2020

Conversation

areusch
Copy link
Contributor

@areusch areusch commented Sep 16, 2020

Fixes #6496.

I found an MIT-licensed library that was fairly easy to adapt, but I had to make some changes on top of the pristine import. I feel like we normally use submodule, but given changes were needed, imported with subtree and patched on top. let me know if you prefer a different approach.

@areusch
Copy link
Contributor Author

areusch commented Sep 16, 2020

cc @tqchen

@tqchen
Copy link
Member

tqchen commented Sep 17, 2020

@areusch the vta-hw update might be unintended, please use git submodule update to point to the upstream code

@areusch
Copy link
Contributor Author

areusch commented Sep 17, 2020

ugh, fixed

Copy link
Contributor

@cbalint13 cbalint13 left a comment

Choose a reason for hiding this comment

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

@areusch , @tqchen

Wouldn't be better to use BOOST's crc or LLVM's crc?

(1) Boost's crc (16-bit, extensive types):

We could only add boost detection to actual cmake flow and just use it.

(2) LLVM's crc (32-bit variant only):

LLVM is already involved, we can directly use getCRC() function.

@tqchen
Copy link
Member

tqchen commented Sep 17, 2020

Thansk @cbalint13 I believe the main concern here is the need for a minimum C impl for micro controllers, so boost/llvm cannot be used in this case. Although the most ideal case might be a mininum impl in the uTVM source. I am going to merge this for now.

@tqchen tqchen merged commit 74254c3 into apache:master Sep 17, 2020
kevinthesun pushed a commit to kevinthesun/tvm that referenced this pull request Sep 17, 2020
kevinthesun pushed a commit to kevinthesun/tvm that referenced this pull request Sep 18, 2020
trevor-m pushed a commit to neo-ai/tvm that referenced this pull request Sep 18, 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.

[uTVM] Use an alternative CRC Library
3 participants