@@ -67,7 +67,7 @@ static void pmix3x_query(opal_list_t *queries,
67
67
static void pmix3x_log (opal_list_t * info ,
68
68
opal_pmix_op_cbfunc_t cbfunc , void * cbdata );
69
69
70
- const opal_pmix_base_module_t opal_pmix_pmix3x_module = {
70
+ const opal_pmix_base_module_t opal_pmix_ext3x_module = {
71
71
/* client APIs */
72
72
.init = pmix3x_client_init ,
73
73
.finalize = pmix3x_client_finalize ,
@@ -121,7 +121,7 @@ static const char *pmix3x_get_nspace(opal_jobid_t jobid)
121
121
{
122
122
opal_pmix3x_jobid_trkr_t * jptr ;
123
123
124
- OPAL_LIST_FOREACH (jptr , & mca_pmix_pmix3x_component .jobids , opal_pmix3x_jobid_trkr_t ) {
124
+ OPAL_LIST_FOREACH (jptr , & mca_pmix_ext3x_component .jobids , opal_pmix3x_jobid_trkr_t ) {
125
125
if (jptr -> jobid == jobid ) {
126
126
return jptr -> nspace ;
127
127
}
@@ -134,15 +134,15 @@ static void pmix3x_register_jobid(opal_jobid_t jobid, const char *nspace)
134
134
opal_pmix3x_jobid_trkr_t * jptr ;
135
135
136
136
/* if we don't already have it, add this to our jobid tracker */
137
- OPAL_LIST_FOREACH (jptr , & mca_pmix_pmix3x_component .jobids , opal_pmix3x_jobid_trkr_t ) {
137
+ OPAL_LIST_FOREACH (jptr , & mca_pmix_ext3x_component .jobids , opal_pmix3x_jobid_trkr_t ) {
138
138
if (jptr -> jobid == jobid ) {
139
139
return ;
140
140
}
141
141
}
142
142
jptr = OBJ_NEW (opal_pmix3x_jobid_trkr_t );
143
143
(void )strncpy (jptr -> nspace , nspace , PMIX_MAX_NSLEN );
144
144
jptr -> jobid = jobid ;
145
- opal_list_append (& mca_pmix_pmix3x_component .jobids , & jptr -> super );
145
+ opal_list_append (& mca_pmix_ext3x_component .jobids , & jptr -> super );
146
146
}
147
147
148
148
static void completion_handler (int status , void * cbdata )
@@ -181,7 +181,7 @@ static void progress_local_event_hdlr(int status,
181
181
if (NULL != chain -> sing ) {
182
182
/* the last handler was for a single code - see if there are
183
183
* any others that match this event */
184
- while (opal_list_get_end (& mca_pmix_pmix3x_component .single_events ) != (nxt = opal_list_get_next (& chain -> sing -> super ))) {
184
+ while (opal_list_get_end (& mca_pmix_ext3x_component .single_events ) != (nxt = opal_list_get_next (& chain -> sing -> super ))) {
185
185
sing = (opal_pmix3x_single_event_t * )nxt ;
186
186
if (sing -> code == chain -> status ) {
187
187
OBJ_RETAIN (chain );
@@ -199,14 +199,14 @@ static void progress_local_event_hdlr(int status,
199
199
* events that match */
200
200
chain -> sing = NULL ;
201
201
/* pickup the beginning of the multi-code event list */
202
- if (0 < opal_list_get_size (& mca_pmix_pmix3x_component .multi_events )) {
203
- chain -> multi = (opal_pmix3x_multi_event_t * )opal_list_get_begin (& mca_pmix_pmix3x_component .multi_events );
202
+ if (0 < opal_list_get_size (& mca_pmix_ext3x_component .multi_events )) {
203
+ chain -> multi = (opal_pmix3x_multi_event_t * )opal_list_get_begin (& mca_pmix_ext3x_component .multi_events );
204
204
}
205
205
}
206
206
207
207
/* see if we need to continue with the multi code events */
208
208
if (NULL != chain -> multi ) {
209
- while (opal_list_get_end (& mca_pmix_pmix3x_component .multi_events ) != (nxt = opal_list_get_next (& chain -> multi -> super ))) {
209
+ while (opal_list_get_end (& mca_pmix_ext3x_component .multi_events ) != (nxt = opal_list_get_next (& chain -> multi -> super ))) {
210
210
multi = (opal_pmix3x_multi_event_t * )nxt ;
211
211
for (n = 0 ; n < multi -> ncodes ; n ++ ) {
212
212
if (multi -> codes [n ] == chain -> status ) {
@@ -228,8 +228,8 @@ static void progress_local_event_hdlr(int status,
228
228
* events that match */
229
229
chain -> multi = NULL ;
230
230
/* pickup the beginning of the default event list */
231
- if (0 < opal_list_get_size (& mca_pmix_pmix3x_component .default_events )) {
232
- chain -> def = (opal_pmix3x_default_event_t * )opal_list_get_begin (& mca_pmix_pmix3x_component .default_events );
231
+ if (0 < opal_list_get_size (& mca_pmix_ext3x_component .default_events )) {
232
+ chain -> def = (opal_pmix3x_default_event_t * )opal_list_get_begin (& mca_pmix_ext3x_component .default_events );
233
233
}
234
234
}
235
235
@@ -239,7 +239,7 @@ static void progress_local_event_hdlr(int status,
239
239
}
240
240
241
241
if (NULL != chain -> def ) {
242
- if (opal_list_get_end (& mca_pmix_pmix3x_component .default_events ) != (nxt = opal_list_get_next (& chain -> def -> super ))) {
242
+ if (opal_list_get_end (& mca_pmix_ext3x_component .default_events ) != (nxt = opal_list_get_next (& chain -> def -> super ))) {
243
243
def = (opal_pmix3x_default_event_t * )nxt ;
244
244
OBJ_RETAIN (chain );
245
245
chain -> def = def ;
@@ -290,7 +290,7 @@ static void _event_hdlr(int sd, short args, void *cbdata)
290
290
chain -> nondefault = cd -> nondefault ;
291
291
292
292
/* cycle thru the single-event registrations first */
293
- OPAL_LIST_FOREACH (sing , & mca_pmix_pmix3x_component .single_events , opal_pmix3x_single_event_t ) {
293
+ OPAL_LIST_FOREACH (sing , & mca_pmix_ext3x_component .single_events , opal_pmix3x_single_event_t ) {
294
294
if (sing -> code == chain -> status ) {
295
295
/* found it - invoke the handler, pointing its
296
296
* callback function to our progression function */
@@ -308,7 +308,7 @@ static void _event_hdlr(int sd, short args, void *cbdata)
308
308
309
309
/* if we didn't find any match in the single-event registrations,
310
310
* then cycle thru the multi-event registrations next */
311
- OPAL_LIST_FOREACH (multi , & mca_pmix_pmix3x_component .multi_events , opal_pmix3x_multi_event_t ) {
311
+ OPAL_LIST_FOREACH (multi , & mca_pmix_ext3x_component .multi_events , opal_pmix3x_multi_event_t ) {
312
312
for (n = 0 ; n < multi -> ncodes ; n ++ ) {
313
313
if (multi -> codes [n ] == chain -> status ) {
314
314
/* found it - invoke the handler, pointing its
@@ -330,16 +330,16 @@ static void _event_hdlr(int sd, short args, void *cbdata)
330
330
if (chain -> nondefault ) {
331
331
/* if we get here, then we need to cache this event in case they
332
332
* register for it later - we cannot lose individual events */
333
- opal_list_append (& mca_pmix_pmix3x_component .cache , & chain -> super );
333
+ opal_list_append (& mca_pmix_ext3x_component .cache , & chain -> super );
334
334
return ;
335
335
}
336
336
337
337
/* we are done with the threadshift caddy */
338
338
OBJ_RELEASE (cd );
339
339
340
340
/* finally, pass it to any default handlers */
341
- if (0 < opal_list_get_size (& mca_pmix_pmix3x_component .default_events )) {
342
- def = (opal_pmix3x_default_event_t * )opal_list_get_first (& mca_pmix_pmix3x_component .default_events );
341
+ if (0 < opal_list_get_size (& mca_pmix_ext3x_component .default_events )) {
342
+ def = (opal_pmix3x_default_event_t * )opal_list_get_first (& mca_pmix_ext3x_component .default_events );
343
343
OBJ_RETAIN (chain );
344
344
chain -> def = def ;
345
345
opal_output_verbose (2 , opal_pmix_base_framework .framework_output ,
@@ -1045,35 +1045,35 @@ static void _reg_hdlr(int sd, short args, void *cbdata)
1045
1045
/* this is a default handler */
1046
1046
def = OBJ_NEW (opal_pmix3x_default_event_t );
1047
1047
def -> handler = cd -> evhandler ;
1048
- def -> index = mca_pmix_pmix3x_component .evindex ;
1048
+ def -> index = mca_pmix_ext3x_component .evindex ;
1049
1049
if (prepend ) {
1050
1050
opal_output_verbose (2 , opal_pmix_base_framework .framework_output ,
1051
1051
"%s PREPENDING TO DEFAULT EVENTS" ,
1052
1052
OPAL_NAME_PRINT (OPAL_PROC_MY_NAME ));
1053
- opal_list_prepend (& mca_pmix_pmix3x_component .default_events , & def -> super );
1053
+ opal_list_prepend (& mca_pmix_ext3x_component .default_events , & def -> super );
1054
1054
} else {
1055
1055
opal_output_verbose (2 , opal_pmix_base_framework .framework_output ,
1056
1056
"%s APPENDING TO DEFAULT EVENTS" ,
1057
1057
OPAL_NAME_PRINT (OPAL_PROC_MY_NAME ));
1058
- opal_list_append (& mca_pmix_pmix3x_component .default_events , & def -> super );
1058
+ opal_list_append (& mca_pmix_ext3x_component .default_events , & def -> super );
1059
1059
}
1060
1060
} else if (1 == opal_list_get_size (cd -> event_codes )) {
1061
1061
/* single handler */
1062
1062
sing = OBJ_NEW (opal_pmix3x_single_event_t );
1063
1063
kv = (opal_value_t * )opal_list_get_first (cd -> event_codes );
1064
1064
sing -> code = kv -> data .integer ;
1065
- sing -> index = mca_pmix_pmix3x_component .evindex ;
1065
+ sing -> index = mca_pmix_ext3x_component .evindex ;
1066
1066
sing -> handler = cd -> evhandler ;
1067
1067
if (prepend ) {
1068
1068
opal_output_verbose (2 , opal_pmix_base_framework .framework_output ,
1069
1069
"%s PREPENDING TO SINGLE EVENTS WITH CODE %d" ,
1070
1070
OPAL_NAME_PRINT (OPAL_PROC_MY_NAME ), sing -> code );
1071
- opal_list_prepend (& mca_pmix_pmix3x_component .single_events , & sing -> super );
1071
+ opal_list_prepend (& mca_pmix_ext3x_component .single_events , & sing -> super );
1072
1072
} else {
1073
1073
opal_output_verbose (2 , opal_pmix_base_framework .framework_output ,
1074
1074
"%s APPENDING TO SINGLE EVENTS WITH CODE %d" ,
1075
1075
OPAL_NAME_PRINT (OPAL_PROC_MY_NAME ), sing -> code );
1076
- opal_list_append (& mca_pmix_pmix3x_component .single_events , & sing -> super );
1076
+ opal_list_append (& mca_pmix_ext3x_component .single_events , & sing -> super );
1077
1077
}
1078
1078
} else {
1079
1079
multi = OBJ_NEW (opal_pmix3x_multi_event_t );
@@ -1084,35 +1084,35 @@ static void _reg_hdlr(int sd, short args, void *cbdata)
1084
1084
multi -> codes [i ] = kv -> data .integer ;
1085
1085
++ i ;
1086
1086
}
1087
- multi -> index = mca_pmix_pmix3x_component .evindex ;
1087
+ multi -> index = mca_pmix_ext3x_component .evindex ;
1088
1088
multi -> handler = cd -> evhandler ;
1089
1089
if (prepend ) {
1090
1090
opal_output_verbose (2 , opal_pmix_base_framework .framework_output ,
1091
1091
"%s PREPENDING TO MULTI EVENTS" ,
1092
1092
OPAL_NAME_PRINT (OPAL_PROC_MY_NAME ));
1093
- opal_list_prepend (& mca_pmix_pmix3x_component .multi_events , & multi -> super );
1093
+ opal_list_prepend (& mca_pmix_ext3x_component .multi_events , & multi -> super );
1094
1094
} else {
1095
1095
opal_output_verbose (2 , opal_pmix_base_framework .framework_output ,
1096
1096
"%s APPENDING TO MULTI EVENTS" ,
1097
1097
OPAL_NAME_PRINT (OPAL_PROC_MY_NAME ));
1098
- opal_list_append (& mca_pmix_pmix3x_component .multi_events , & multi -> super );
1098
+ opal_list_append (& mca_pmix_ext3x_component .multi_events , & multi -> super );
1099
1099
}
1100
1100
}
1101
1101
1102
1102
/* release the caller */
1103
1103
if (NULL != cd -> cbfunc ) {
1104
- cd -> cbfunc (OPAL_SUCCESS , mca_pmix_pmix3x_component .evindex , cd -> cbdata );
1104
+ cd -> cbfunc (OPAL_SUCCESS , mca_pmix_ext3x_component .evindex , cd -> cbdata );
1105
1105
}
1106
- mca_pmix_pmix3x_component .evindex ++ ;
1106
+ mca_pmix_ext3x_component .evindex ++ ;
1107
1107
1108
1108
/* check if any matching notifications have been cached - only nondefault
1109
1109
* events will have been cached*/
1110
1110
if (NULL == def ) {
1111
1111
/* check single code registrations */
1112
1112
if (NULL != sing ) {
1113
- OPAL_LIST_FOREACH (chain , & mca_pmix_pmix3x_component .cache , opal_pmix3x_event_chain_t ) {
1113
+ OPAL_LIST_FOREACH (chain , & mca_pmix_ext3x_component .cache , opal_pmix3x_event_chain_t ) {
1114
1114
if (sing -> code == chain -> status ) {
1115
- opal_list_remove_item (& mca_pmix_pmix3x_component .cache , & chain -> super );
1115
+ opal_list_remove_item (& mca_pmix_ext3x_component .cache , & chain -> super );
1116
1116
chain -> sing = sing ;
1117
1117
sing -> handler (chain -> status , & chain -> source ,
1118
1118
chain -> info , & chain -> results ,
@@ -1123,10 +1123,10 @@ static void _reg_hdlr(int sd, short args, void *cbdata)
1123
1123
}
1124
1124
} else if (NULL != multi ) {
1125
1125
/* check for multi code registrations */
1126
- OPAL_LIST_FOREACH (chain , & mca_pmix_pmix3x_component .cache , opal_pmix3x_event_chain_t ) {
1126
+ OPAL_LIST_FOREACH (chain , & mca_pmix_ext3x_component .cache , opal_pmix3x_event_chain_t ) {
1127
1127
for (n = 0 ; n < multi -> ncodes ; n ++ ) {
1128
1128
if (multi -> codes [n ] == chain -> status ) {
1129
- opal_list_remove_item (& mca_pmix_pmix3x_component .cache , & chain -> super );
1129
+ opal_list_remove_item (& mca_pmix_ext3x_component .cache , & chain -> super );
1130
1130
chain -> multi = multi ;
1131
1131
multi -> handler (chain -> status , & chain -> source ,
1132
1132
chain -> info , & chain -> results ,
@@ -1163,25 +1163,25 @@ static void _dereg_hdlr(int sd, short args, void *cbdata)
1163
1163
opal_pmix3x_default_event_t * def ;
1164
1164
1165
1165
/* check the single events first */
1166
- OPAL_LIST_FOREACH (sing , & mca_pmix_pmix3x_component .single_events , opal_pmix3x_single_event_t ) {
1166
+ OPAL_LIST_FOREACH (sing , & mca_pmix_ext3x_component .single_events , opal_pmix3x_single_event_t ) {
1167
1167
if (cd -> handler == sing -> index ) {
1168
- opal_list_remove_item (& mca_pmix_pmix3x_component .single_events , & sing -> super );
1168
+ opal_list_remove_item (& mca_pmix_ext3x_component .single_events , & sing -> super );
1169
1169
OBJ_RELEASE (sing );
1170
1170
goto release ;
1171
1171
}
1172
1172
}
1173
1173
/* check multi events */
1174
- OPAL_LIST_FOREACH (multi , & mca_pmix_pmix3x_component .multi_events , opal_pmix3x_multi_event_t ) {
1174
+ OPAL_LIST_FOREACH (multi , & mca_pmix_ext3x_component .multi_events , opal_pmix3x_multi_event_t ) {
1175
1175
if (cd -> handler == multi -> index ) {
1176
- opal_list_remove_item (& mca_pmix_pmix3x_component .multi_events , & multi -> super );
1176
+ opal_list_remove_item (& mca_pmix_ext3x_component .multi_events , & multi -> super );
1177
1177
OBJ_RELEASE (multi );
1178
1178
goto release ;
1179
1179
}
1180
1180
}
1181
1181
/* check default events */
1182
- OPAL_LIST_FOREACH (def , & mca_pmix_pmix3x_component .default_events , opal_pmix3x_default_event_t ) {
1182
+ OPAL_LIST_FOREACH (def , & mca_pmix_ext3x_component .default_events , opal_pmix3x_default_event_t ) {
1183
1183
if (cd -> handler == def -> index ) {
1184
- opal_list_remove_item (& mca_pmix_pmix3x_component .default_events , & def -> super );
1184
+ opal_list_remove_item (& mca_pmix_ext3x_component .default_events , & def -> super );
1185
1185
OBJ_RELEASE (def );
1186
1186
break ;
1187
1187
}
@@ -1214,7 +1214,7 @@ static void _notify_event(int sd, short args, void *cbdata)
1214
1214
opal_pmix3x_event_chain_t * chain ;
1215
1215
1216
1216
/* check the single events first */
1217
- OPAL_LIST_FOREACH (sing , & mca_pmix_pmix3x_component .single_events , opal_pmix3x_single_event_t ) {
1217
+ OPAL_LIST_FOREACH (sing , & mca_pmix_ext3x_component .single_events , opal_pmix3x_single_event_t ) {
1218
1218
if (cd -> status == sing -> code ) {
1219
1219
/* found it - invoke the handler, pointing its
1220
1220
* callback function to our progression function */
@@ -1237,7 +1237,7 @@ static void _notify_event(int sd, short args, void *cbdata)
1237
1237
}
1238
1238
}
1239
1239
/* check multi events */
1240
- OPAL_LIST_FOREACH (multi , & mca_pmix_pmix3x_component .multi_events , opal_pmix3x_multi_event_t ) {
1240
+ OPAL_LIST_FOREACH (multi , & mca_pmix_ext3x_component .multi_events , opal_pmix3x_multi_event_t ) {
1241
1241
for (i = 0 ; i < multi -> ncodes ; i ++ ) {
1242
1242
if (cd -> status == multi -> codes [i ]) {
1243
1243
/* found it - invoke the handler, pointing its
@@ -1262,8 +1262,8 @@ static void _notify_event(int sd, short args, void *cbdata)
1262
1262
}
1263
1263
}
1264
1264
/* check default events */
1265
- if (0 < opal_list_get_size (& mca_pmix_pmix3x_component .default_events )) {
1266
- def = (opal_pmix3x_default_event_t * )opal_list_get_first (& mca_pmix_pmix3x_component .default_events );
1265
+ if (0 < opal_list_get_size (& mca_pmix_ext3x_component .default_events )) {
1266
+ def = (opal_pmix3x_default_event_t * )opal_list_get_first (& mca_pmix_ext3x_component .default_events );
1267
1267
chain = OBJ_NEW (opal_pmix3x_event_chain_t );
1268
1268
chain -> status = cd -> status ;
1269
1269
chain -> range = pmix3x_convert_opalrange (cd -> range );
0 commit comments