-
Notifications
You must be signed in to change notification settings - Fork 428
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
UCT/GDRCOPY: rcache lookup overhead config variable #10311
base: master
Are you sure you want to change the base?
Changes from all commits
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 |
---|---|---|
|
@@ -46,6 +46,10 @@ static ucs_config_field_t uct_gdr_copy_iface_config_table[] = { | |
ucs_offsetof(uct_gdr_copy_iface_config_t, put_latency)}, | ||
{NULL})}, | ||
|
||
{"RCACHE_OVERHEAD", "250ns", | ||
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. I think it should be in 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. Agree with you. We discussed that with @brminich and came to a conclusion that it should be different |
||
"gdr_copy regions rcache lookup estimated overhead", | ||
ucs_offsetof(uct_gdr_copy_iface_config_t, rcache_overhead), UCS_CONFIG_TYPE_TIME}, | ||
|
||
{NULL} | ||
}; | ||
|
||
|
@@ -137,7 +141,7 @@ uct_gdr_copy_iface_query(uct_iface_h tl_iface, uct_iface_attr_t *iface_attr) | |
iface->config.put_bw.dedicated); | ||
iface_attr->bandwidth.shared = ucs_max(iface->config.get_bw.shared, | ||
iface->config.put_bw.shared); | ||
iface_attr->overhead = UCT_GDR_COPY_IFACE_OVERHEAD; | ||
iface_attr->overhead = 0; | ||
iface_attr->priority = 0; | ||
|
||
return UCS_OK; | ||
|
@@ -158,7 +162,8 @@ uct_gdr_copy_estimate_perf(uct_iface_h tl_iface, uct_perf_attr_t *perf_attr) | |
} | ||
|
||
if (perf_attr->field_mask & UCT_PERF_ATTR_FIELD_SEND_PRE_OVERHEAD) { | ||
perf_attr->send_pre_overhead = UCT_GDR_COPY_IFACE_OVERHEAD; | ||
perf_attr->send_pre_overhead = UCT_GDR_COPY_IFACE_OVERHEAD + | ||
iface->config.rcache_ovh; | ||
} | ||
|
||
if (perf_attr->field_mask & UCT_PERF_ATTR_FIELD_SEND_POST_OVERHEAD) { | ||
|
@@ -240,6 +245,7 @@ static UCS_CLASS_INIT_FUNC(uct_gdr_copy_iface_t, uct_md_h md, uct_worker_h worke | |
self->config.put_bw = gdr_config->put_bw; | ||
self->config.get_latency = ucs_linear_func_make(gdr_config->get_latency, 0); | ||
self->config.put_latency = ucs_linear_func_make(gdr_config->put_latency, 0); | ||
self->config.rcache_ovh = gdr_config->rcache_overhead; | ||
|
||
return UCS_OK; | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ typedef struct uct_gdr_copy_iface { | |
uct_ppn_bandwidth_t put_bw; | ||
ucs_linear_func_t get_latency; | ||
ucs_linear_func_t put_latency; | ||
double rcache_ovh; | ||
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. I think there is no need to shorten the word. |
||
} config; | ||
} uct_gdr_copy_iface_t; | ||
|
||
|
@@ -30,6 +31,7 @@ typedef struct uct_gdr_copy_iface_config { | |
uct_ppn_bandwidth_t put_bw; | ||
double get_latency; | ||
double put_latency; | ||
double rcache_overhead; | ||
} uct_gdr_copy_iface_config_t; | ||
|
||
#endif |
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.
Typo