@@ -282,7 +282,8 @@ static void wait_cbfunc(struct pmix_peer_t *pr, pmix_ptl_hdr_t *hdr, pmix_buffer
282282{
283283 pmix_lock_t * lock = (pmix_lock_t * ) cbdata ;
284284
285- pmix_output_verbose (2 , pmix_client_globals .base_output , "pmix:client wait_cbfunc received" );
285+ pmix_output_verbose (2 , pmix_client_globals .base_output ,
286+ "pmix:client wait_cbfunc received" );
286287 if (NULL == pr || NULL == hdr || NULL == buf || NULL == cbdata ) {
287288 ;
288289 }
@@ -357,7 +358,8 @@ static void notification_fn(size_t evhdlr_registration_id, pmix_status_t status,
357358 char * name = NULL ;
358359 size_t n ;
359360
360- pmix_output_verbose (2 , pmix_client_globals .base_output , "[%s:%d] DEBUGGER RELEASE RECVD" ,
361+ pmix_output_verbose (2 , pmix_client_globals .base_output ,
362+ "[%s:%d] DEBUGGER RELEASE RECVD" ,
361363 pmix_globals .myid .nspace , pmix_globals .myid .rank );
362364
363365 PMIX_HIDE_UNUSED_PARAMS (evhdlr_registration_id , status , source , results , nresults );
@@ -625,13 +627,20 @@ PMIX_EXPORT pmix_status_t PMIx_Init(pmix_proc_t *proc, pmix_info_t info[], size_
625627
626628 /* setup the runtime - this init's the globals,
627629 * opens and initializes the required frameworks */
628- if ( PMIX_SUCCESS
629- != ( rc = pmix_rte_init ( PMIX_PROC_CLIENT , info , ninfo , pmix_client_notify_recv )) ) {
630+ rc = pmix_rte_init ( PMIX_PROC_CLIENT , info , ninfo , pmix_client_notify_recv );
631+ if ( PMIX_SUCCESS != rc ) {
630632 PMIX_ERROR_LOG (rc );
631633 pmix_init_result = rc ;
632634 PMIX_RELEASE_THREAD (& pmix_global_lock );
633635 return rc ;
634636 }
637+ /* setup the base verbosity */
638+ if (0 < pmix_client_globals .base_verbose ) {
639+ /* set default output */
640+ pmix_client_globals .base_output = pmix_output_open (NULL );
641+ pmix_output_set_verbosity (pmix_client_globals .base_output ,
642+ pmix_client_globals .base_verbose );
643+ }
635644 /* setup the IO Forwarding recv */
636645 rcv = PMIX_NEW (pmix_ptl_posted_recv_t );
637646 rcv -> tag = PMIX_PTL_TAG_IOF ;
@@ -673,15 +682,8 @@ PMIX_EXPORT pmix_status_t PMIx_Init(pmix_proc_t *proc, pmix_info_t info[], size_
673682 return PMIX_ERR_NOMEM ;
674683 }
675684
676- /* setup the base verbosity */
677- if (0 < pmix_client_globals .base_verbose ) {
678- /* set default output */
679- pmix_client_globals .base_output = pmix_output_open (NULL );
680- pmix_output_set_verbosity (pmix_client_globals .base_output ,
681- pmix_client_globals .base_verbose );
682- }
683-
684- pmix_output_verbose (2 , pmix_client_globals .base_output , "pmix: init called" );
685+ pmix_output_verbose (2 , pmix_client_globals .base_output ,
686+ "pmix: init called" );
685687
686688 /* see if the required info is present */
687689 if (NULL == (evar = getenv ("PMIX_NAMESPACE" ))) {
@@ -869,6 +871,11 @@ PMIX_EXPORT pmix_status_t PMIx_Init(pmix_proc_t *proc, pmix_info_t info[], size_
869871 wildcard .rank = PMIX_RANK_WILDCARD ;
870872 PMIX_INFO_LOAD (& ginfo , PMIX_OPTIONAL , NULL , PMIX_BOOL );
871873 if (PMIX_SUCCESS == PMIx_Get (& wildcard , PMIX_DEBUG_STOP_IN_INIT , & ginfo , 1 , & val )) {
874+ pmix_output_verbose (2 , pmix_client_globals .base_output ,
875+ "[%s:%d] RECEIVED STOP IN INIT FOR RANK %s" ,
876+ pmix_globals .myid .nspace ,
877+ pmix_globals .myid .rank ,
878+ PMIX_RANK_PRINT (val -> data .rank ));
872879 /* are we one of the procs to stop? */
873880 if (PMIX_CHECK_RANK (val -> data .rank , pmix_globals .myid .rank )) {
874881 /* if the value was found, then we need to wait for debugger attach here */
@@ -900,6 +907,11 @@ PMIX_EXPORT pmix_status_t PMIx_Init(pmix_proc_t *proc, pmix_info_t info[], size_
900907 PMIX_DESTRUCT_LOCK (& releaselock );
901908 }
902909 PMIX_VALUE_FREE (val , 1 ); // cleanup memory
910+ } else {
911+ pmix_output_verbose (2 , pmix_client_globals .base_output ,
912+ "[%s:%d] NO DEBUGGER WAITING" ,
913+ pmix_globals .myid .nspace ,
914+ pmix_globals .myid .rank );
903915 }
904916 PMIX_INFO_DESTRUCT (& ginfo );
905917
@@ -1009,7 +1021,8 @@ PMIX_EXPORT pmix_status_t PMIx_Finalize(const pmix_info_t info[], size_t ninfo)
10091021 }
10101022 pmix_globals .init_cntr = 0 ;
10111023
1012- pmix_output_verbose (2 , pmix_client_globals .base_output , "%s:%d pmix:client finalize called" ,
1024+ pmix_output_verbose (2 , pmix_client_globals .base_output ,
1025+ "%s:%d pmix:client finalize called" ,
10131026 pmix_globals .myid .nspace , pmix_globals .myid .rank );
10141027
10151028 /* mark that I called finalize */
@@ -1121,7 +1134,8 @@ PMIX_EXPORT pmix_status_t PMIx_Abort(int flag, const char msg[], pmix_proc_t pro
11211134 pmix_status_t rc ;
11221135 pmix_lock_t reglock ;
11231136
1124- pmix_output_verbose (2 , pmix_client_globals .base_output , "pmix:client abort called" );
1137+ pmix_output_verbose (2 , pmix_client_globals .base_output ,
1138+ "pmix:client abort called" );
11251139
11261140 PMIX_ACQUIRE_THREAD (& pmix_global_lock );
11271141 if (pmix_globals .init_cntr <= 0 ) {
0 commit comments