-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[microTVM] Build standalone_crt with cmake instead of makefile #13600
Conversation
Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.
Generated by tvm-bot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @alanmacd, I think this makes the build process for standalone_crt
much cleaner.
One comment I have is related to the python packaging mechanism. As part of packaging TVM will look for the standalone_crt
directory (I think it is the copied one, as referred in #13533) to add the static files to the package. Can you double check whether that behaviour is also kept while you propose these changes?
The static files are needed so that users can integrate embedded projects only with the TVM installed from the package, rather than requiring the package+cloning apache/tvm
repo.
Lines 59 to 64 in b7015bb
# Add standalone_crt, if present | |
for name in lib_path: | |
candidate_path = os.path.join(os.path.dirname(name), "standalone_crt") | |
if os.path.isdir(candidate_path): | |
libs.append(candidate_path) | |
break |
Thanks @leandron I will verify that files are placed in the same locations as previous done with the makefile version (I may have stashed the library files in slightly different locations) Is there a specific way you typically invoke setup.py to exercise this feature or an example command that I should use to test? |
Build TVM with Also, if that helps with context, the real use case would be following tlcpack steps https://github.com/tlc-pack/tlcpack |
@leandron ok, it looks like it's only copying the standalone_crt directory into the wheel, I've updated my PR to not put the library binaries in the standalone_crt directory (matching the current TVM main), all the other files should be the same as I didn't change the standalone_crt file copy code. |
thanks @alanmacd |
…ry to match previous location; remove unused variable;
@leandron can you explicit approve if you're good w/ this? |
…e#13600) Build standalone_crt with cmake instead of makefile to allow for better portability of microTVM code to other build environments. fixes apache#13533
Build standalone_crt with cmake instead of makefile to allow for better portability of microTVM code to other build environments.
fixes #13533