-
Notifications
You must be signed in to change notification settings - Fork 592
UCP/WIREUP: Add flush+destroy of UCT EPs used by TMP EP lanes #5613
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 1 commit
7de5445
631b32c
72190be
cdd175c
4e1c626
88b41c8
9df2346
41b63de
b94d406
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 |
|---|---|---|
|
|
@@ -1016,13 +1016,15 @@ void ucp_ep_destroy(ucp_ep_h ep) | |
|
|
||
| int ucp_ep_config_lane_is_equal(const ucp_ep_config_key_t *key1, | ||
| const ucp_ep_config_key_t *key2, | ||
| ucp_lane_index_t lane, int compare_types) | ||
| ucp_lane_index_t lane1, | ||
| ucp_lane_index_t lane2, | ||
| int compare_types) | ||
| { | ||
| return (key1->lanes[lane].rsc_index == key2->lanes[lane].rsc_index) && | ||
| (key1->lanes[lane].proxy_lane == key2->lanes[lane].proxy_lane) && | ||
| (key1->lanes[lane].dst_md_index == key2->lanes[lane].dst_md_index) && | ||
| (key1->lanes[lane].path_index == key2->lanes[lane].path_index) && | ||
| ((key1->lanes[lane].lane_types == key2->lanes[lane].lane_types) || | ||
| return (key1->lanes[lane1].rsc_index == key2->lanes[lane2].rsc_index) && | ||
| (key1->lanes[lane1].proxy_lane == key2->lanes[lane2].proxy_lane) && | ||
| (key1->lanes[lane1].dst_md_index == key2->lanes[lane2].dst_md_index) && | ||
| (key1->lanes[lane1].path_index == key2->lanes[lane2].path_index) && | ||
| ((key1->lanes[lane1].lane_types == key2->lanes[lane2].lane_types) || | ||
|
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. memcmp? or even
Member
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. no, wouldn't work since we don't want compare lane_tpyes if it wasn't requested
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. sorry, missed extra () around
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. or
Member
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. fixed |
||
| !compare_types); | ||
|
evgeny-leksikov marked this conversation as resolved.
Outdated
|
||
| } | ||
|
|
||
|
|
@@ -1052,7 +1054,7 @@ int ucp_ep_config_is_equal(const ucp_ep_config_key_t *key1, | |
| } | ||
|
|
||
| for (lane = 0; lane < key1->num_lanes; ++lane) { | ||
| if (!ucp_ep_config_lane_is_equal(key1, key2, lane, 1)) | ||
| if (!ucp_ep_config_lane_is_equal(key1, key2, lane, lane, 1)) | ||
| { | ||
| return 0; | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -292,35 +292,25 @@ ucp_wireup_find_remote_p2p_addr(ucp_ep_h ep, ucp_lane_index_t remote_lane, | |
| return UCS_ERR_UNREACHABLE; | ||
| } | ||
|
|
||
| static ucp_lane_index_t | ||
| ucp_wireup_ep_lane_used_by_another_ep_config(ucp_ep_config_key_t *ep_config_key, | ||
| ucp_ep_config_key_t *another_ep_config_key, | ||
| ucp_lane_index_t lane) | ||
| ucp_lane_index_t | ||
| ucp_wireup_ep_configs_use_same_lane(ucp_ep_config_key_t *ep_config_key, | ||
| ucp_ep_config_key_t *another_ep_config_key, | ||
|
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.
Member
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. fixed |
||
| ucp_lane_index_t lane) | ||
| { | ||
| ucp_lane_index_t another_lane; | ||
|
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.
Member
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. fixed |
||
|
|
||
| for (another_lane = 0; another_lane < another_ep_config_key->num_lanes; | ||
| ++another_lane) { | ||
| if (ucp_ep_config_lane_is_equal(ep_config_key, | ||
|
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.
so since major change is based on this func it should be revised
Member
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. good catch, fixed |
||
| another_ep_config_key, | ||
| lane, 0)) { | ||
| lane, another_lane, 0)) { | ||
|
evgeny-leksikov marked this conversation as resolved.
Outdated
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. btw, why don't we need to compare types?
Member
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. the can be different, we need to check whether this is the same TL+device pair or not |
||
| return another_lane; | ||
| } | ||
| } | ||
|
|
||
| return UCP_NULL_LANE; | ||
| } | ||
|
|
||
| ucp_lane_index_t ucp_wireup_ep_lane_used_by_another_ep(ucp_ep_h ep, | ||
| ucp_ep_h another_ep, | ||
| ucp_lane_index_t lane) | ||
| { | ||
| return ucp_wireup_ep_lane_used_by_another_ep_config( | ||
| &ucp_ep_config(ep)->key, | ||
| &ucp_ep_config(another_ep)->key, | ||
| lane); | ||
| } | ||
|
|
||
| ucs_status_t | ||
| ucp_wireup_connect_local(ucp_ep_h ep, | ||
| const ucp_unpacked_address_t *remote_address, | ||
|
|
||
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.
comparing lane numbers from different configs is erroneous, also does not seem to be needed
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.
ye, fixed
no need this