File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -134,12 +134,14 @@ int mca_pml_ucx_open(void)
134
134
UCP_PARAM_FIELD_REQUEST_SIZE |
135
135
UCP_PARAM_FIELD_REQUEST_INIT |
136
136
UCP_PARAM_FIELD_REQUEST_CLEANUP |
137
- UCP_PARAM_FIELD_TAG_SENDER_MASK ;
137
+ UCP_PARAM_FIELD_TAG_SENDER_MASK |
138
+ UCP_PARAM_FIELD_MT_WORKERS_SHARED ;
138
139
params .features = UCP_FEATURE_TAG ;
139
140
params .request_size = sizeof (ompi_request_t );
140
141
params .request_init = mca_pml_ucx_request_init ;
141
142
params .request_cleanup = mca_pml_ucx_request_cleanup ;
142
143
params .tag_sender_mask = PML_UCX_SPECIFIC_SOURCE_MASK ;
144
+ params .mt_workers_shared = 0 ;
143
145
144
146
status = ucp_init (& params , config , & ompi_pml_ucx .ucp_context );
145
147
ucp_config_release (config );
@@ -183,7 +185,7 @@ int mca_pml_ucx_init(void)
183
185
184
186
/* TODO check MPI thread mode */
185
187
params .field_mask = UCP_WORKER_PARAM_FIELD_THREAD_MODE ;
186
- params .thread_mode = UCS_THREAD_MODE_SINGLE ;
188
+ params .thread_mode = UCS_THREAD_MODE_MULTI ;
187
189
188
190
status = ucp_worker_create (ompi_pml_ucx .ucp_context , & params ,
189
191
& ompi_pml_ucx .ucp_worker );
Original file line number Diff line number Diff line change @@ -127,7 +127,8 @@ static int mca_spml_ucx_component_open(void)
127
127
128
128
memset (& params , 0 , sizeof (params ));
129
129
params .field_mask = UCP_PARAM_FIELD_FEATURES ;
130
- params .features = UCP_FEATURE_RMA |UCP_FEATURE_AMO32 |UCP_FEATURE_AMO64 ;
130
+ params .features = UCP_FEATURE_RMA |UCP_FEATURE_AMO32 |UCP_FEATURE_AMO64 |UCP_PARAM_FIELD_MT_WORKERS_SHARED ;
131
+ params .mt_workers_shared = 0 ;
131
132
132
133
err = ucp_init (& params , ucp_config , & mca_spml_ucx .ucp_context );
133
134
ucp_config_release (ucp_config );
@@ -153,7 +154,7 @@ static int spml_ucx_init(void)
153
154
ucs_status_t err ;
154
155
155
156
params .field_mask = UCP_WORKER_PARAM_FIELD_THREAD_MODE ;
156
- params .thread_mode = UCS_THREAD_MODE_SINGLE ;
157
+ params .thread_mode = UCS_THREAD_MODE_MULTI ;
157
158
158
159
err = ucp_worker_create (mca_spml_ucx .ucp_context , & params ,
159
160
& mca_spml_ucx .ucp_worker );
You can’t perform that action at this time.
0 commit comments