@@ -232,7 +232,7 @@ void mca_common_monitoring_finalize( void )
232
232
{
233
233
if ( ! mca_common_monitoring_enabled || /* Don't release if not last */
234
234
0 < opal_atomic_sub_fetch_32 (& mca_common_monitoring_hold , 1 ) ) return ;
235
-
235
+
236
236
OPAL_MONITORING_PRINT_INFO ("common_component_finish" );
237
237
/* Dump monitoring informations */
238
238
mca_common_monitoring_flush (mca_common_monitoring_output_enabled ,
@@ -253,7 +253,7 @@ void mca_common_monitoring_finalize( void )
253
253
}
254
254
}
255
255
256
- void mca_common_monitoring_register (void * pml_monitoring_component )
256
+ int mca_common_monitoring_register (void )
257
257
{
258
258
/* Because we are playing tricks with the component close, we should not
259
259
* use mca_base_component_var_register but instead stay with the basic
@@ -282,7 +282,6 @@ void mca_common_monitoring_register(void*pml_monitoring_component)
282
282
& mca_common_monitoring_output_enabled );
283
283
284
284
(void )mca_base_var_register ("ompi" , "pml" , "monitoring" , "filename" ,
285
- /*&mca_common_monitoring_component.pmlm_version, "filename",*/
286
285
"The name of the file where the monitoring information "
287
286
"should be saved (the filename will be extended with the "
288
287
"process rank and the \".prof\" extension). If this field "
@@ -299,10 +298,9 @@ void mca_common_monitoring_register(void*pml_monitoring_component)
299
298
* filename to be handled by the framework. It's easier to deal
300
299
* with the string lifetime.
301
300
*/
302
- if ( NULL != mca_common_monitoring_initial_filename )
301
+ if ( NULL != mca_common_monitoring_initial_filename ) {
303
302
mca_common_monitoring_current_filename = strdup (mca_common_monitoring_initial_filename );
304
-
305
- /* Register PVARs */
303
+ }
306
304
307
305
/* PML PVARs */
308
306
(void )mca_base_pvar_register ("ompi" , "pml" , "monitoring" , "flush" , "Flush the monitoring "
@@ -338,7 +336,7 @@ void mca_common_monitoring_register(void*pml_monitoring_component)
338
336
MCA_BASE_PVAR_FLAG_READONLY | MCA_BASE_PVAR_FLAG_IWG ,
339
337
mca_common_monitoring_get_osc_sent_count , NULL ,
340
338
mca_common_monitoring_comm_size_notify , NULL );
341
-
339
+
342
340
(void )mca_base_pvar_register ("ompi" , "osc" , "monitoring" , "messages_sent_size" , "Size of "
343
341
"messages sent through the OSC framework with each peer." ,
344
342
OPAL_INFO_LVL_4 , MPI_T_PVAR_CLASS_SIZE ,
@@ -387,7 +385,7 @@ void mca_common_monitoring_register(void*pml_monitoring_component)
387
385
MCA_BASE_PVAR_FLAG_READONLY | MCA_BASE_PVAR_FLAG_IWG ,
388
386
mca_common_monitoring_coll_get_o2a_count , NULL ,
389
387
mca_common_monitoring_coll_messages_notify , NULL );
390
-
388
+
391
389
(void )mca_base_pvar_register ("ompi" , "coll" , "monitoring" , "o2a_size" , "Size of messages "
392
390
"exchanged as one-to-all operations in a communicator." ,
393
391
OPAL_INFO_LVL_4 , MPI_T_PVAR_CLASS_AGGREGATE ,
@@ -403,7 +401,7 @@ void mca_common_monitoring_register(void*pml_monitoring_component)
403
401
MCA_BASE_PVAR_FLAG_READONLY | MCA_BASE_PVAR_FLAG_IWG ,
404
402
mca_common_monitoring_coll_get_a2o_count , NULL ,
405
403
mca_common_monitoring_coll_messages_notify , NULL );
406
-
404
+
407
405
(void )mca_base_pvar_register ("ompi" , "coll" , "monitoring" , "a2o_size" , "Size of messages "
408
406
"exchanged as all-to-one operations in a communicator." ,
409
407
OPAL_INFO_LVL_4 , MPI_T_PVAR_CLASS_AGGREGATE ,
@@ -419,14 +417,16 @@ void mca_common_monitoring_register(void*pml_monitoring_component)
419
417
MCA_BASE_PVAR_FLAG_READONLY | MCA_BASE_PVAR_FLAG_IWG ,
420
418
mca_common_monitoring_coll_get_a2a_count , NULL ,
421
419
mca_common_monitoring_coll_messages_notify , NULL );
422
-
420
+
423
421
(void )mca_base_pvar_register ("ompi" , "coll" , "monitoring" , "a2a_size" , "Size of messages "
424
422
"exchanged as all-to-all operations in a communicator." ,
425
423
OPAL_INFO_LVL_4 , MPI_T_PVAR_CLASS_AGGREGATE ,
426
424
MCA_MONITORING_VAR_TYPE , NULL , MPI_T_BIND_MPI_COMM ,
427
425
MCA_BASE_PVAR_FLAG_READONLY | MCA_BASE_PVAR_FLAG_IWG ,
428
426
mca_common_monitoring_coll_get_a2a_size , NULL ,
429
427
mca_common_monitoring_coll_messages_notify , NULL );
428
+
429
+ return OMPI_SUCCESS ;
430
430
}
431
431
432
432
/**
@@ -512,7 +512,7 @@ void mca_common_monitoring_record_pml(int world_rank, size_t data_size, int tag)
512
512
log2_size = max_size_histogram - 2 ;
513
513
opal_atomic_add_fetch_size_t (& size_histogram [world_rank * max_size_histogram + log2_size + 1 ], 1 );
514
514
}
515
-
515
+
516
516
/* distinguishses positive and negative tags if requested */
517
517
if ( (tag < 0 ) && (mca_common_monitoring_filter ()) ) {
518
518
opal_atomic_add_fetch_size_t (& filtered_pml_data [world_rank ], data_size );
0 commit comments