-
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
[Ansor][AutoTVM v2.0] Phase 1: Add RPC Runner #6077
Conversation
@jcf94 Gental reminder: To reproduce Ansor paper's result, we should turn on clflush (for x86 cpu) and non empty array. clflush has been merged, you should consider to put it in this pr(clflush link, non empty array pr I will do it as soon as possile. If that can not be merged before this pr, I could handle it after this pr is merged. Wish this info could make you aware we have some depentcy. Thanks. |
Thanks for the PR! Will take a look this weekend😄 |
Ok, actually this is the least important part of phase 1. |
fine. We could add TODO now and I could handle it later. |
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.
Otherwise LGTM
* Add rpc runner * Update * Update * Add clflush & non-empty ndarray TODO hints * Update * UT Update * Update timeout in UT
* Add rpc runner * Update * Update * Add clflush & non-empty ndarray TODO hints * Update * UT Update * Update timeout in UT
* Add rpc runner * Update * Update * Add clflush & non-empty ndarray TODO hints * Update * UT Update * Update timeout in UT
* Add rpc runner * Update * Update * Add clflush & non-empty ndarray TODO hints * Update * UT Update * Update timeout in UT
For full upstream plan, see Ansor RFC.
In this PR, we bring the RPCRunner. This uses RPC call to measures the time cost of programs on remote devices. And this can also be used in local running to insulate the thread environment.
The RPCRunner is critical for measuring schedules in ARM CPU and NVIDIA GPU.
p.s. This implementation is almost the same with what in AutoTVM's code base, will consider to merge them later.
cc @tqchen @merrymercy @FrozenGene @minminsun @comaniac