Skip to content

Commit 274f8d6

Browse files
committed
coll-portals4: Change output format and change variable names (minor changes).
1 parent 0e433ea commit 274f8d6

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

ompi/mca/coll/portals4/coll_portals4_allreduce.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ allreduce_kary_tree_top(const void *sendbuf, void *recvbuf, int count,
265265
ompi_coll_portals4_get_peer(comm, child[i]),
266266
mca_coll_portals4_component.pt_idx,
267267
match_bits_rtr, 0, NULL, 0)) != PTL_OK)
268-
return opal_stderr("Put RTR failed", __FILE__, __LINE__, ret);
268+
return opal_stderr("Put RTR failed %d", __FILE__, __LINE__, ret);
269269
}
270270
}
271271
}
@@ -408,7 +408,7 @@ int ompi_coll_portals4_iallreduce_intra(const void* sendbuf, void* recvbuf, int
408408
allreduce_kary_tree_top(sendbuf, recvbuf, count,
409409
dtype, op, comm, request, portals4_module);
410410

411-
puts("iallreduce");
411+
opal_output_verbose(10, ompi_coll_base_framework.framework_output, "iallreduce");
412412
return (OMPI_SUCCESS);
413413
}
414414

ompi/mca/coll/portals4/coll_portals4_bcast.c

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -409,9 +409,9 @@ bcast_kary_tree_top(void *buff, int count,
409409
*/
410410

411411
if (rank != root) {
412-
ack_thr = segment_nb;
412+
trig_thr = segment_nb;
413413
if (is_sync) {
414-
if ((ret = PtlCTWait(request->u.bcast.trig_ct_h, ack_thr, &ct)) != 0) {
414+
if ((ret = PtlCTWait(request->u.bcast.trig_ct_h, trig_thr, &ct)) != 0) {
415415
opal_stderr("PtlCTWait failed", __FILE__, __LINE__, ret);
416416
}
417417
}
@@ -421,7 +421,7 @@ bcast_kary_tree_top(void *buff, int count,
421421
mca_coll_portals4_component.finish_pt_idx,
422422
0, 0, NULL, (uintptr_t) request,
423423
request->u.bcast.trig_ct_h,
424-
ack_thr)) != 0) {
424+
trig_thr)) != 0) {
425425
return opal_stderr("PtlTriggeredPut failed", __FILE__, __LINE__, ret);
426426
}
427427

@@ -696,8 +696,9 @@ bcast_pipeline_top(void *buff, int count,
696696
*/
697697

698698
if (rank != root) {
699+
trig_thr = segment_nb;
699700
if (is_sync) {
700-
if ((ret = PtlCTWait(request->u.bcast.trig_ct_h, segment_nb, &ct)) != 0) {
701+
if ((ret = PtlCTWait(request->u.bcast.trig_ct_h, trig_thr, &ct)) != 0) {
701702
opal_stderr("PtlCTWait failed", __FILE__, __LINE__, ret);
702703
}
703704
}
@@ -707,7 +708,7 @@ bcast_pipeline_top(void *buff, int count,
707708
mca_coll_portals4_component.finish_pt_idx,
708709
0, 0, NULL, (uintptr_t) request,
709710
request->u.bcast.trig_ct_h,
710-
segment_nb)) != 0) {
711+
trig_thr)) != 0) {
711712
return opal_stderr("PtlTriggeredPut failed", __FILE__, __LINE__, ret);
712713
}
713714
}
@@ -831,7 +832,7 @@ ompi_coll_portals4_ibcast_intra(void *buff, int count,
831832
return OMPI_ERROR;
832833
}
833834

834-
puts("ibcast");
835+
opal_output_verbose(10, ompi_coll_base_framework.framework_output, "ibcast_intra");
835836
return (OMPI_SUCCESS);
836837
}
837838

@@ -860,5 +861,6 @@ ompi_coll_portals4_ibcast_intra_fini(ompi_coll_portals4_request_t *request)
860861
ompi_request_complete(&request->super, true);
861862
OPAL_THREAD_UNLOCK(&ompi_request_lock);
862863

864+
opal_output_verbose(10, ompi_coll_base_framework.framework_output, "ibcast_intra_fini");
863865
return (OMPI_SUCCESS);
864866
}

ompi/mca/coll/portals4/coll_portals4_reduce.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ ompi_coll_portals4_ireduce_intra(const void* sendbuf, void* recvbuf, int count,
428428
OMPI_COLL_PORTALS4_REQUEST_RETURN(request);
429429
}
430430

431-
puts("ireduce");
431+
opal_output_verbose(10, ompi_coll_base_framework.framework_output, "ireduce");
432432
return (OMPI_SUCCESS);
433433
}
434434

0 commit comments

Comments
 (0)