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