-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[AutoTVM] Use popenpool in local_executor #8851
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
Conversation
|
Author's note:
|
5c0ace4 to
bab59c0
Compare
|
Similar to the fix you did for auto scheduler, |
|
@vinx13 just moved all testing utility functions of autotvm to |
|
@vinx13 The refactor is finished. I moved the two test cases for |
18eab6b to
29f0c1b
Compare
|
Can you confirm autotvm work both in the terminal and jupyter? You can run this tutorial |
vinx13
left a comment
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 test case can be updated if the only usage of LocalFutureNoFork is the test case
c25bd00 to
d78e79e
Compare
|
On 64-core linux machine, each did 5 runs:
|
|
@shingjan can you also check if custom build func still works for autotvm? |
vinx13
left a comment
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.
found some changes needed
0b5397e to
34e9d12
Compare
|
With a custom build function like the one below, this PR runs fine for |
* use popenpool in local_executor * move auto_tvm_common to tvm.testing * refactor * nit * remove LocalFutureNoFork * exception handling * handling two exceptions * handling error * add initiazlier
* use popenpool in local_executor * move auto_tvm_common to tvm.testing * refactor * nit * remove LocalFutureNoFork * exception handling * handling two exceptions * handling error * add initiazlier
This PR intends to replace
multiprocessing.poolwithpopenpoolinautotvm/local_executor.@junrushao1994 @vinx13 @tqchen