-
Notifications
You must be signed in to change notification settings - Fork 517
UCP/PROTO: UCX_PROTO_INFO=used option #11100
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
Changes from all commits
39895c9
57afe56
3c48f38
c5b6c9a
c9fb9e1
fb54f6a
0de902c
de9c856
c9337e0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -492,6 +492,7 @@ static ucs_config_field_t ucp_context_config_table[] = { | |
| " 'y' : Print information for all protocols\n" | ||
| " 'n' : Do not print any protocol information\n" | ||
| " 'auto' : Print information when UCX_LOG_LEVEL is 'debug' or higher\n" | ||
| " 'used' : Print information for used protocols\n" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe we need another var now? Otherwise, how one can ask for used protocols to be printed with/without debug log?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When set to
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it seems to be a bit confusing to me. Imo we have to manage when we want to print it and the format of the output separately. I was thinking about another env var which would define the format of the output (with values
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Honestly I don't see a problem here. Use cases I see:
So LOG_LEVEL can only influence mode if it's not set explicitly (auto).
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. how would I print just protocol tables with option used (or without it)?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. like today: UCX_PROTO_INFO=y to print all PS tables
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok, lets use just one var, but I suggest to define it like this: @guy-ealey-morag, @iyastreb wdyt?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The tricky part is that used PS tables are printed only at the end of the UCP worker lifetime (if it's terminated gracefully!). So essentially it changes behavior UCX users get used to. For example, in sglang I use this feature but I have to print PS tables on some event, because sglang app does not terminate gracefully. So I don't know what is better.. I would keep it as is, and improve in the future
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok |
||
| " glob_pattern : Print information for operations matching the glob pattern.\n" | ||
| " For example: '*tag*gpu*', '*put*fast*host*'", | ||
| ucs_offsetof(ucp_context_config_t, proto_info), UCS_CONFIG_TYPE_STRING}, | ||
|
|
@@ -2398,6 +2399,10 @@ static ucs_status_t ucp_fill_config(ucp_context_h context, | |
| context->config.progress_wrapper_enabled = | ||
| ucs_log_is_enabled(UCS_LOG_LEVEL_TRACE_REQ) || | ||
| ucp_context_usage_tracker_enabled(context); | ||
|
|
||
| context->config.trace_used_proto_selections = | ||
| !strcasecmp(context->config.ext.proto_info, "used"); | ||
|
|
||
| return UCS_OK; | ||
|
|
||
| err_free_key_list: | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.