File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -136,15 +136,16 @@ int mca_pml_ucx_open(void)
136
136
UCP_PARAM_FIELD_REQUEST_INIT |
137
137
UCP_PARAM_FIELD_REQUEST_CLEANUP |
138
138
UCP_PARAM_FIELD_TAG_SENDER_MASK |
139
- UCP_PARAM_FIELD_MT_WORKERS_SHARED ;
139
+ UCP_PARAM_FIELD_MT_WORKERS_SHARED |
140
+ UCP_PARAM_FIELD_ESTIMATED_NUM_EPS ;
140
141
params .features = UCP_FEATURE_TAG ;
141
142
params .request_size = sizeof (ompi_request_t );
142
143
params .request_init = mca_pml_ucx_request_init ;
143
144
params .request_cleanup = mca_pml_ucx_request_cleanup ;
144
145
params .tag_sender_mask = PML_UCX_SPECIFIC_SOURCE_MASK ;
145
146
params .mt_workers_shared = 0 ; /* we do not need mt support for context
146
147
since it will be protected by worker */
147
-
148
+ params . estimated_num_eps = ompi_proc_world_size ();
148
149
149
150
status = ucp_init (& params , config , & ompi_pml_ucx .ucp_context );
150
151
ucp_config_release (config );
Original file line number Diff line number Diff line change @@ -126,8 +126,9 @@ static int mca_spml_ucx_component_open(void)
126
126
}
127
127
128
128
memset (& params , 0 , sizeof (params ));
129
- params .field_mask = UCP_PARAM_FIELD_FEATURES ;
129
+ params .field_mask = UCP_PARAM_FIELD_FEATURES | UCP_PARAM_FIELD_ESTIMATED_NUM_EPS ;
130
130
params .features = UCP_FEATURE_RMA |UCP_FEATURE_AMO32 |UCP_FEATURE_AMO64 ;
131
+ params .estimated_num_eps = oshmem_num_procs ();
131
132
132
133
err = ucp_init (& params , ucp_config , & mca_spml_ucx .ucp_context );
133
134
ucp_config_release (ucp_config );
You can’t perform that action at this time.
0 commit comments