Skip to content

Commit 8a1bead

Browse files
authored
Merge pull request #8519 from AboorvaDevarajan/fix_build_issue
OMPI: fix build issues in CUDA path
2 parents f9f32ee + aaffafc commit 8a1bead

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

contrib/scaling/mpi_memprobe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ static void sample(void)
142142
OBJ_CONSTRUCT(&response, opal_list_t);
143143
kv = OBJ_NEW(opal_value_t);
144144
kv->key = strdup(OPAL_PMIX_LOG_STDOUT);
145-
kv->type = OPAL_STRING;
145+
kv->type = PMIX_STRING;
146146
kv->data.string = opal_argv_join(answer, '\n');
147147
opal_list_append(&response, &kv->super);
148148
opal_argv_free(answer);

ompi/mca/pml/ob1/pml_ob1_recvreq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ void mca_pml_ob1_recv_request_progress_rget( mca_pml_ob1_recv_request_t* recvreq
731731
}
732732
} else {
733733
/* Just default back to send and receive. Must be mix of GPU and HOST memory. */
734-
mca_pml_ob1_recv_request_ack(recvreq, &hdr->hdr_rndv, 0);
734+
mca_pml_ob1_recv_request_ack(recvreq, btl, &hdr->hdr_rndv, 0);
735735
return;
736736
}
737737
}

opal/mca/btl/smcuda/btl_smcuda.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ smcuda_btl_first_time_init(mca_btl_smcuda_t *smcuda_btl,
244244
wildcard_rank.jobid = OPAL_PROC_MY_NAME.jobid;
245245
wildcard_rank.vpid = OPAL_VPID_WILDCARD;
246246
OPAL_MODEX_RECV_VALUE_OPTIONAL(rc, PMIX_TOPOLOGY_SIGNATURE,
247-
&wildcard_rank, &loc, OPAL_STRING);
247+
&wildcard_rank, &loc, PMIX_STRING);
248248
if (OPAL_SUCCESS == rc) {
249249
/* the number of NUMA nodes is right at the front */
250250
mca_btl_smcuda_component.num_mem_nodes = num_mem_nodes = strtoul(loc, NULL, 10);
@@ -267,7 +267,7 @@ smcuda_btl_first_time_init(mca_btl_smcuda_t *smcuda_btl,
267267
}
268268
/* see if we were given our location */
269269
OPAL_MODEX_RECV_VALUE_OPTIONAL(rc, PMIX_LOCALITY_STRING,
270-
&OPAL_PROC_MY_NAME, &loc, OPAL_STRING);
270+
&OPAL_PROC_MY_NAME, &loc, PMIX_STRING);
271271
if (OPAL_SUCCESS == rc) {
272272
if (NULL == loc) {
273273
mca_btl_smcuda_component.mem_node = my_mem_node = -1;

test/simple/interlib.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static void model_callback(int status,
4242
0 == strcmp(val->data.string, "OpenMP")) {
4343
goto cback;
4444
}
45-
if (OPAL_STRING == val->type) {
45+
if (PMIX_STRING == val->type) {
4646
opal_output(0, "Thread Model Callback Key: %s Val %s", val->key, val->data.string);
4747
}
4848
}
@@ -99,22 +99,22 @@ static void *mylib(void *ptr)
9999
OBJ_CONSTRUCT(&info, opal_list_t);
100100
kv = OBJ_NEW(opal_value_t);
101101
kv->key = strdup(OPAL_PMIX_PROGRAMMING_MODEL);
102-
kv->type = OPAL_STRING;
102+
kv->type = PMIX_STRING;
103103
kv->data.string = strdup("OpenMP");
104104
opal_list_append(&info, &kv->super);
105105
kv = OBJ_NEW(opal_value_t);
106106
kv->key = strdup(OPAL_PMIX_MODEL_LIBRARY_NAME);
107-
kv->type = OPAL_STRING;
107+
kv->type = PMIX_STRING;
108108
kv->data.string = strdup("foobar");
109109
opal_list_append(&info, &kv->super);
110110
kv = OBJ_NEW(opal_value_t);
111111
kv->key = strdup(OPAL_PMIX_MODEL_LIBRARY_VERSION);
112-
kv->type = OPAL_STRING;
112+
kv->type = PMIX_STRING;
113113
kv->data.string = strdup("1.2.3.4");
114114
opal_list_append(&info, &kv->super);
115115
kv = OBJ_NEW(opal_value_t);
116116
kv->key = strdup(OPAL_PMIX_THREADING_MODEL);
117-
kv->type = OPAL_STRING;
117+
kv->type = PMIX_STRING;
118118
kv->data.string = strdup("PTHREAD");
119119
opal_list_append(&info, &kv->super);
120120

@@ -150,7 +150,7 @@ static void *mylib(void *ptr)
150150
OBJ_CONSTRUCT(&directives, opal_list_t);
151151
kv = OBJ_NEW(opal_value_t);
152152
kv->key = strdup(OPAL_PMIX_EVENT_HDLR_NAME);
153-
kv->type = OPAL_STRING;
153+
kv->type = PMIX_STRING;
154154
kv->data.string = strdup("My-Declarations");
155155
opal_list_append(&directives, &kv->super);
156156
/* specify the event code */
@@ -248,7 +248,7 @@ int main(int argc, char* argv[])
248248
/* push something the thread can recognize */
249249
OBJ_CONSTRUCT(&kv, opal_value_t);
250250
kv.key = strdup("WASSUP");
251-
kv.type = OPAL_STRING;
251+
kv.type = PMIX_STRING;
252252
kv.data.string = strdup("nothing");
253253
opal_pmix.put(OPAL_PMIX_LOCAL, &kv);
254254
OBJ_DESTRUCT(&kv);
@@ -276,7 +276,7 @@ int main(int argc, char* argv[])
276276
OBJ_CONSTRUCT(&list, opal_list_t);
277277
kptr = OBJ_NEW(opal_value_t);
278278
kptr->key = strdup("SOMETHING");
279-
kptr->type = OPAL_STRING;
279+
kptr->type = PMIX_STRING;
280280
kptr->data.string = strdup("SILLY-THING");
281281
opal_list_append(&list, &kptr->super);
282282
opal_pmix.publish(&list);

0 commit comments

Comments
 (0)