-
Notifications
You must be signed in to change notification settings - Fork 429
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
UCP/WIREUP: Support reused lanes for EP reconfiguration #10244
base: master
Are you sure you want to change the base?
Conversation
@shasson5 please improve the description: |
src/ucp/core/ucp_ep.c
Outdated
} | ||
|
||
for (lane = 0; lane < key->num_lanes; lane++) { | ||
if (ucp_ep_get_reused_lane_source(ep, lane, reuse_lane_map) == |
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.
There is O(n^2) complexity here, let's try to avoid it.
@shasson5 as discussed, please refactor the test to rely on parametrization of existing scenarios, rather then writing new test cases from scratch. |
@@ -92,15 +103,25 @@ class test_ucp_ep_reconfig : public ucp_test { | |||
if (sender().ucph()->num_tls <= 2) { | |||
UCS_TEST_SKIP_R("test requires at least 2 ifaces to work"); | |||
} | |||
|
|||
check_reused_lanes_reconfigurable(); |
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.
Is it really needed in every init()
?
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.
how else will you check if reuse_lanes can be run?
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.
I mean - is it needed in every type of test_ucp_ep_reconfig
(every test case in this file)?
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.
it is required for the base class (test_ucp_ep_reconfig
).
What
Support reused lanes for EP reconfiguration.
Reused lanes means lanes we don't have to reconnect, but just use them as they are.
This usecase requires special handling in the code in order to allow reconfiguration of such scenarios.
Why ?
Part of EP reconfiguration feature.