Skip to content

Commit 9f39f64

Browse files
snadampalshijin-aws
authored andcommitted
[v2.2.x] prov/util: configure control_progress with the user provided progress mode
EFA provider supports lockless statemachine when threading=`FI_THREAD_DOMAIN` and control_progress=`FI_PROGRESS_CONTROL_UNIFIED`. However neither the progress nor the control_progress from user hints were propogated to domain `control_progress` attribute and hence there was no way to enable the lockless state from user. This patch is updating the domain control_progress attribute with the user progress hints. Signed-off-by: Sunita Nadampalli <[email protected]> (cherry picked from commit 396cd4a)
1 parent d8348ba commit 9f39f64

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

prov/util/src/util_attr.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1231,8 +1231,10 @@ static void fi_alter_domain_attr(struct fi_domain_attr *attr,
12311231

12321232
if (hints->threading)
12331233
attr->threading = hints->threading;
1234-
if (hints->progress)
1234+
if (hints->progress) {
12351235
attr->progress = hints->progress;
1236+
attr->control_progress = hints->progress;
1237+
}
12361238
if (hints->av_type)
12371239
attr->av_type = hints->av_type;
12381240
if (hints->max_ep_auth_key)

0 commit comments

Comments
 (0)