-
Notifications
You must be signed in to change notification settings - Fork 158
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
[onert] Introduce NUM_THREADS config #13929
Conversation
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.
LGTM
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.
LGTM though I prefer NUM_THREADS
. See #13929 (comment).
@@ -31,8 +31,7 @@ CONFIG(USE_SCHEDULER , bool , "0") | |||
CONFIG(TRACING_MODE , bool , "0") | |||
CONFIG(MINMAX_DUMP , bool , "0") | |||
CONFIG(FP16_ENABLE , bool , "0") | |||
CONFIG(RUY_THREADS , int , "-1") | |||
CONFIG(XNNPACK_THREADS , int , "-1") | |||
CONFIG(ONERT_THREADS , int , "-1") |
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.
(optional) What about removing ONERT_
as other variables? We may use NUM_THREADS
.
CONFIG(ONERT_THREADS , int , "-1") | |
CONFIG(NUM_THREADS , int , "-1") |
It seems our python code also uses the name of num_threads
.
This commit introduces `NUM_THREADS`. `NUM_THREADS` replaces `RUY_THREADS` and `XNNPACK_THREADS`. ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
0353a52
to
9d0c65a
Compare
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.
LGTM
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.
LGTM
This commit introduces
NUM_THREADS
.NUM_THREADS
replacesRUY_THREADS
andXNNPACK_THREADS
.ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh [email protected]
Related issue: #13909 (comment)