Skip to content

Commit 3ca194f

Browse files
committed
mtl-portals4: Store ptl_process_id (from PtlGetPhysId) and display it.
1 parent bd3b1cf commit 3ca194f

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

ompi/mca/mtl/portals4/mtl_portals4.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ struct mca_mtl_portals4_module_t {
4646

4747
/* Use the logical to physical table to accelerate portals4 adressing: 1 (true) : 0 (false) */
4848
int32_t use_logical;
49+
50+
/* Process_id */
51+
ptl_process_t ptl_process_id;
52+
4953
/* Use flow control: 1 (true) : 0 (false) */
5054
int32_t use_flowctl;
5155

ompi/mca/mtl/portals4/mtl_portals4_component.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,10 @@ ompi_mtl_portals4_component_init(bool enable_progress_threads,
350350
goto error;
351351
}
352352

353+
ompi_mtl_portals4.ptl_process_id = id;
354+
OPAL_OUTPUT_VERBOSE((90, ompi_mtl_base_framework.framework_output,
355+
"PtlGetPhysId rank=%x nid=%x pid=%x\n", id.rank, id.phys.nid, id.phys.pid));
356+
353357
OPAL_MODEX_SEND(ret, OPAL_PMIX_GLOBAL,
354358
&mca_mtl_portals4_component.mtl_version,
355359
&id, sizeof(id));

ompi/mca/mtl/portals4/mtl_portals4_probe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ completion_fn(ptl_event_t *ev, ompi_mtl_portals4_base_request_t *ptl_base_reques
3232
ompi_mtl_portals4_probe_request_t *ptl_request =
3333
(ompi_mtl_portals4_probe_request_t*) ptl_base_request;
3434

35-
opal_output_verbose(1, ompi_mtl_base_framework.framework_output,
35+
opal_output_verbose(10, ompi_mtl_base_framework.framework_output,
3636
"%s:%d: completion_fn: %d %d",
3737
__FILE__, __LINE__, ev->type, ev->ni_fail_type);
3838

0 commit comments

Comments
 (0)