[µTVM] Add platform timer and RPCTimeEvaluator to enable AutoTVM#6964
Conversation
27b1561 to
f464ee6
Compare
f464ee6 to
b0dc298
Compare
|
|
||
| /*! 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.
out of curiosity, what's the reason for increasing the registry size? just having a nice power of 2?
|
@liangfu care to take a pass? thanks! |
liangfu
left a comment
There was a problem hiding this comment.
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. |
liangfu
left a comment
There was a problem hiding this comment.
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 <liangfu@apache.org>
…che#6964) * Add platform timer to microTVM. * Address liangfu comments * cppformat * clang-format Co-authored-by: Liangfu Chen <liangfu@apache.org>
…che#6964) * Add platform timer to microTVM. * Address liangfu comments * cppformat * clang-format Co-authored-by: Liangfu Chen <liangfu@apache.org>
…che#6964) * Add platform timer to microTVM. * Address liangfu comments * cppformat * clang-format Co-authored-by: Liangfu Chen <liangfu@apache.org>
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).