-
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
[µTVM] Add platform timer and RPCTimeEvaluator to enable AutoTVM #6964
Conversation
27b1561
to
f464ee6
Compare
f464ee6
to
b0dc298
Compare
@@ -43,7 +43,7 @@ | |||
#define TVM_CRT_MAX_REGISTERED_MODULES 2 | |||
|
|||
/*! Size of the global function registry, in bytes. */ | |||
#define TVM_CRT_GLOBAL_FUNC_REGISTRY_SIZE_BYTES 200 | |||
#define TVM_CRT_GLOBAL_FUNC_REGISTRY_SIZE_BYTES 256 |
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.
out of curiosity, what's the reason for increasing the registry size? just having a nice power of 2?
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 for the PR @areusch, LGTM
@liangfu care to take a pass? thanks! |
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.
The changes look good, except for a minor change request.
On the other hand, I think it's time to consider using a goto chain when leaving a function on error, since we could easily leave the function with a memory leak in C implementation.
ping @areusch |
sorry @liangfu for the delay. i've addressed your comment and sync'd to main. |
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 for the update, the changes looks good.
@tqchen I think this is ready to merge |
@liangfu @tmoreau89 feel free to merge next time given both committer approves :) no need to block on myself |
…che#6964) * Add platform timer to microTVM. * Address liangfu comments * cppformat * clang-format Co-authored-by: Liangfu Chen <[email protected]>
…che#6964) * Add platform timer to microTVM. * Address liangfu comments * cppformat * clang-format Co-authored-by: Liangfu Chen <[email protected]>
…che#6964) * Add platform timer to microTVM. * Address liangfu comments * cppformat * clang-format Co-authored-by: Liangfu Chen <[email protected]>
…che#6964) * Add platform timer to microTVM. * Address liangfu comments * cppformat * clang-format Co-authored-by: Liangfu Chen <[email protected]>
This PR adds a platform-specific timing function plus a device-side implementation of RPCTimeEvaluator. In a follow-on, an AutoTVM test will be added (there are a few different dependent PRs in flight here so need to let them all land before I can test that properly).