14
14
* and Technology (RIST). All rights reserved.
15
15
* Copyright (c) 2020 Amazon.com, Inc. or its affiliates. All Rights
16
16
* reserved.
17
- * Copyright (c) 2021 Nanook Consulting. All rights reserved.
17
+ * Copyright (c) 2021-2022 Nanook Consulting. All rights reserved.
18
18
* Copyright (c) 2021-2022 IBM Corporation. All rights reserved.
19
19
* $COPYRIGHT$
20
20
*/
@@ -1074,7 +1074,6 @@ void ompi_rte_breakpoint(char *name)
1074
1074
char * evar ;
1075
1075
int rc , code = PMIX_DEBUGGER_RELEASE ;
1076
1076
pmix_info_t info [2 ];
1077
- uint32_t u32 , * u32ptr ;
1078
1077
opal_process_name_t pname ;
1079
1078
1080
1079
if (NULL != name
@@ -1085,27 +1084,21 @@ void ompi_rte_breakpoint(char *name)
1085
1084
}
1086
1085
1087
1086
/* check PMIx to see if we are under a debugger */
1088
- u32ptr = & u32 ;
1089
1087
pname .jobid = opal_process_info .my_name .jobid ;
1090
1088
pname .vpid = OPAL_VPID_WILDCARD ;
1091
1089
OPAL_MODEX_RECV_VALUE_OPTIONAL (rc , PMIX_DEBUG_STOP_IN_APP ,
1092
- & pname , & u32ptr , PMIX_PROC_RANK );
1090
+ & pname , NULL , PMIX_BOOL );
1093
1091
if (PMIX_SUCCESS != rc ) {
1094
1092
/* if not, just return */
1095
1093
return ;
1096
1094
}
1097
- /* are we included? */
1098
- if (!PMIX_CHECK_RANK (u32 , opal_process_info .myprocid .rank )) {
1099
- /* no - ignore it */
1100
- return ;
1101
- }
1102
1095
1103
1096
/* register an event handler for the PMIX_ERR_DEBUGGER_RELEASE event */
1104
1097
PMIX_INFO_LOAD (& directive , PMIX_EVENT_HDLR_NAME , "MPI-DEBUGGER-ATTACH" , PMIX_STRING );
1105
1098
PMIx_Register_event_handler (& code , 1 , & directive , 1 , _release_fn , NULL , NULL );
1106
1099
PMIX_INFO_DESTRUCT (& directive );
1107
1100
1108
- /* notify the host that we are waiting */
1101
+ /* notify the host that we are waiting in MPI_Init */
1109
1102
PMIX_INFO_LOAD (& info [0 ], PMIX_EVENT_NON_DEFAULT , NULL , PMIX_BOOL );
1110
1103
PMIX_INFO_LOAD (& info [1 ], PMIX_BREAKPOINT , "mpi-init" , PMIX_STRING );
1111
1104
PMIx_Notify_event (PMIX_READY_FOR_DEBUG ,
0 commit comments