@@ -442,7 +442,8 @@ static int allocate_state_single (ompi_osc_rdma_module_t *module, void **base, s
442
442
int ret , my_rank ;
443
443
size_t memory_alignment = module -> memory_alignment ;
444
444
445
- OSC_RDMA_VERBOSE (MCA_BASE_VERBOSE_TRACE , "allocating private internal state" );
445
+ opal_output_verbose (MCA_BASE_VERBOSE_TRACE , ompi_osc_base_framework .framework_output ,
446
+ "allocating private internal state" );
446
447
447
448
my_rank = ompi_comm_rank (module -> comm );
448
449
@@ -598,7 +599,8 @@ static int allocate_state_shared (ompi_osc_rdma_module_t *module, void **base, s
598
599
return allocate_state_single (module , base , size );
599
600
}
600
601
601
- OSC_RDMA_VERBOSE (MCA_BASE_VERBOSE_TRACE , "allocating shared internal state" );
602
+ opal_output_verbose (MCA_BASE_VERBOSE_TRACE , ompi_osc_base_framework .framework_output ,
603
+ "allocating shared internal state" );
602
604
603
605
local_rank_array_size = sizeof (ompi_osc_rdma_rank_data_t ) * RANK_ARRAY_COUNT (module );
604
606
leader_peer_data_size = module -> region_size * module -> node_count ;
@@ -654,7 +656,8 @@ static int allocate_state_shared (ompi_osc_rdma_module_t *module, void **base, s
654
656
ret = opal_shmem_segment_create (& module -> seg_ds , data_file , total_size );
655
657
free (data_file );
656
658
if (OPAL_SUCCESS != ret ) {
657
- OSC_RDMA_VERBOSE (MCA_BASE_VERBOSE_ERROR , "failed to create shared memory segment" );
659
+ opal_output_verbose (MCA_BASE_VERBOSE_ERROR , ompi_osc_base_framework .framework_output ,
660
+ "failed to create shared memory segment" );
658
661
}
659
662
}
660
663
}
@@ -672,7 +675,8 @@ static int allocate_state_shared (ompi_osc_rdma_module_t *module, void **base, s
672
675
673
676
module -> segment_base = opal_shmem_segment_attach (& module -> seg_ds );
674
677
if (NULL == module -> segment_base ) {
675
- OSC_RDMA_VERBOSE (MCA_BASE_VERBOSE_ERROR , "failed to attach to the shared memory segment" );
678
+ opal_output_verbose (MCA_BASE_VERBOSE_ERROR , ompi_osc_base_framework .framework_output ,
679
+ "failed to attach to the shared memory segment" );
676
680
ret = OPAL_ERROR ;
677
681
}
678
682
@@ -898,7 +902,8 @@ static int ompi_osc_rdma_query_alternate_btls (ompi_communicator_t *comm, ompi_o
898
902
899
903
btls_to_use = opal_argv_split (ompi_osc_rdma_btl_alternate_names , ',' );
900
904
if (NULL == btls_to_use ) {
901
- OSC_RDMA_VERBOSE (MCA_BASE_VERBOSE_INFO , "no alternate BTLs requested: %s" , ompi_osc_rdma_btl_alternate_names );
905
+ opal_output_verbose (MCA_BASE_VERBOSE_INFO , ompi_osc_base_framework .framework_output ,
906
+ "no alternate BTLs requested: %s" , ompi_osc_rdma_btl_alternate_names );
902
907
return OMPI_ERR_UNREACH ;
903
908
}
904
909
@@ -908,20 +913,23 @@ static int ompi_osc_rdma_query_alternate_btls (ompi_communicator_t *comm, ompi_o
908
913
909
914
/* rdma and atomics are only supported with BTLs at the moment */
910
915
for (int i = 0 ; btls_to_use [i ] ; ++ i ) {
911
- OSC_RDMA_VERBOSE (MCA_BASE_VERBOSE_INFO , "checking for btl %s" , btls_to_use [i ]);
916
+ opal_output_verbose (MCA_BASE_VERBOSE_INFO , "checking for btl %s" , btls_to_use [i ]);
912
917
OPAL_LIST_FOREACH (item , & mca_btl_base_modules_initialized , mca_btl_base_selected_module_t ) {
913
918
if (NULL != item -> btl_module -> btl_register_mem ) {
914
- OSC_RDMA_VERBOSE (MCA_BASE_VERBOSE_INFO , "skipping RDMA btl when searching for alternate BTL" );
919
+ opal_output_verbose (MCA_BASE_VERBOSE_INFO , ompi_osc_base_framework .framework_output ,
920
+ "skipping RDMA btl when searching for alternate BTL" );
915
921
continue ;
916
922
}
917
923
918
924
if (0 != strcmp (btls_to_use [i ], item -> btl_module -> btl_component -> btl_version .mca_component_name )) {
919
- OSC_RDMA_VERBOSE (MCA_BASE_VERBOSE_INFO , "skipping btl %s" ,
920
- item -> btl_module -> btl_component -> btl_version .mca_component_name );
925
+ opal_output_verbose (MCA_BASE_VERBOSE_INFO , ompi_osc_base_framework .framework_output ,
926
+ "skipping btl %s" ,
927
+ item -> btl_module -> btl_component -> btl_version .mca_component_name );
921
928
continue ;
922
929
}
923
930
924
- OSC_RDMA_VERBOSE (MCA_BASE_VERBOSE_INFO , "found alternate btl %s" , btls_to_use [i ]);
931
+ opal_output_verbose (MCA_BASE_VERBOSE_INFO , ompi_osc_base_framework .framework_output ,
932
+ "found alternate btl %s" , btls_to_use [i ]);
925
933
926
934
++ btls_found ;
927
935
if (module ) {
@@ -1089,7 +1097,8 @@ static int ompi_osc_rdma_query_accelerated_btls (ompi_communicator_t *comm, ompi
1089
1097
}
1090
1098
1091
1099
if (NULL == selected_btl ) {
1092
- OSC_RDMA_VERBOSE (MCA_BASE_VERBOSE_INFO , "no suitable btls found" );
1100
+ opal_output_verbose (MCA_BASE_VERBOSE_INFO , ompi_osc_base_framework .framework_output ,
1101
+ "accelerated_query: no suitable btls found" );
1093
1102
return OMPI_ERR_NOT_AVAILABLE ;
1094
1103
}
1095
1104
@@ -1100,8 +1109,9 @@ static int ompi_osc_rdma_query_accelerated_btls (ompi_communicator_t *comm, ompi
1100
1109
module -> use_memory_registration = selected_btl -> btl_register_mem != NULL ;
1101
1110
}
1102
1111
1103
- OSC_RDMA_VERBOSE (MCA_BASE_VERBOSE_INFO , "selected btl: %s" ,
1104
- selected_btl -> btl_component -> btl_version .mca_component_name );
1112
+ opal_output_verbose (MCA_BASE_VERBOSE_INFO , ompi_osc_base_framework .framework_output ,
1113
+ "accelerated_query: selected btl: %s" ,
1114
+ selected_btl -> btl_component -> btl_version .mca_component_name );
1105
1115
1106
1116
return OMPI_SUCCESS ;
1107
1117
}
@@ -1150,7 +1160,8 @@ static int ompi_osc_rdma_share_data (ompi_osc_rdma_module_t *module)
1150
1160
module -> region_size , MPI_BYTE , module -> local_leaders ,
1151
1161
module -> local_leaders -> c_coll -> coll_allgather_module );
1152
1162
if (OMPI_SUCCESS != ret ) {
1153
- OSC_RDMA_VERBOSE (MCA_BASE_VERBOSE_ERROR , "leader allgather failed with ompi error code %d" , ret );
1163
+ opal_output_verbose (MCA_BASE_VERBOSE_ERROR , ompi_osc_base_framework .framework_output ,
1164
+ "leader allgather failed with ompi error code %d" , ret );
1154
1165
break ;
1155
1166
}
1156
1167
}
@@ -1193,7 +1204,8 @@ static int ompi_osc_rdma_create_groups (ompi_osc_rdma_module_t *module)
1193
1204
/* create a shared communicator to handle communication about the local segment */
1194
1205
ret = ompi_comm_split_type (module -> comm , MPI_COMM_TYPE_SHARED , 0 , NULL , & module -> shared_comm );
1195
1206
if (OPAL_UNLIKELY (OMPI_SUCCESS != ret )) {
1196
- OSC_RDMA_VERBOSE (MCA_BASE_VERBOSE_ERROR , "failed to create a shared memory communicator. error code %d" , ret );
1207
+ opal_output_verbose (MCA_BASE_VERBOSE_ERROR , ompi_osc_base_framework .framework_output ,
1208
+ "failed to create a shared memory communicator. error code %d" , ret );
1197
1209
return ret ;
1198
1210
}
1199
1211
@@ -1204,7 +1216,8 @@ static int ompi_osc_rdma_create_groups (ompi_osc_rdma_module_t *module)
1204
1216
ret = ompi_comm_split (module -> comm , (0 == local_rank ) ? 0 : MPI_UNDEFINED , comm_rank , & module -> local_leaders ,
1205
1217
false);
1206
1218
if (OPAL_UNLIKELY (OMPI_SUCCESS != ret )) {
1207
- OSC_RDMA_VERBOSE (MCA_BASE_VERBOSE_ERROR , "failed to create local leaders communicator. error code %d" , ret );
1219
+ opal_output_verbose (MCA_BASE_VERBOSE_ERROR , ompi_osc_base_framework .framework_output ,
1220
+ "failed to create local leaders communicator. error code %d" , ret );
1208
1221
return ret ;
1209
1222
}
1210
1223
@@ -1217,7 +1230,8 @@ static int ompi_osc_rdma_create_groups (ompi_osc_rdma_module_t *module)
1217
1230
ret = module -> shared_comm -> c_coll -> coll_bcast (values , 2 , MPI_INT , 0 , module -> shared_comm ,
1218
1231
module -> shared_comm -> c_coll -> coll_bcast_module );
1219
1232
if (OMPI_SUCCESS != ret ) {
1220
- OSC_RDMA_VERBOSE (MCA_BASE_VERBOSE_ERROR , "failed to broadcast local data. error code %d" , ret );
1233
+ opal_output_verbose (MCA_BASE_VERBOSE_ERROR , ompi_osc_base_framework .framework_output ,
1234
+ "failed to broadcast local data. error code %d" , ret );
1221
1235
return ret ;
1222
1236
}
1223
1237
}
@@ -1350,8 +1364,9 @@ static int ompi_osc_rdma_component_select (struct ompi_win_t *win, void **base,
1350
1364
return ret ;
1351
1365
}
1352
1366
1353
- OSC_RDMA_VERBOSE (MCA_BASE_VERBOSE_INFO , "creating osc/rdma window of flavor %d with id %s" ,
1354
- flavor , ompi_comm_print_cid (module -> comm ));
1367
+ opal_output_verbose (MCA_BASE_VERBOSE_INFO , ompi_osc_base_framework .framework_output ,
1368
+ "creating osc/rdma window of flavor %d with id %s" ,
1369
+ flavor , ompi_comm_print_cid (module -> comm ));
1355
1370
1356
1371
/* peer data */
1357
1372
if (world_size > init_limit ) {
@@ -1372,11 +1387,13 @@ static int ompi_osc_rdma_component_select (struct ompi_win_t *win, void **base,
1372
1387
/* find rdma capable endpoints */
1373
1388
ret = ompi_osc_rdma_query_accelerated_btls (module -> comm , module );
1374
1389
if (OMPI_SUCCESS != ret ) {
1375
- OSC_RDMA_VERBOSE (MCA_BASE_VERBOSE_WARN , "could not find a suitable btl. falling back on "
1376
- "active-message BTLs" );
1390
+ opal_output_verbose (MCA_BASE_VERBOSE_WARN , ompi_osc_base_framework .framework_output ,
1391
+ "could not find an accelerated btl. falling back on "
1392
+ "active-message BTLs" );
1377
1393
ret = ompi_osc_rdma_query_alternate_btls (module -> comm , module );
1378
1394
if (OMPI_SUCCESS != ret ) {
1379
- OSC_RDMA_VERBOSE (MCA_BASE_VERBOSE_WARN , "no BTL available for RMA window" );
1395
+ opal_output_verbose (MCA_BASE_VERBOSE_WARN , ompi_osc_base_framework .framework_output ,
1396
+ "no BTL available for RMA window" );
1380
1397
ompi_osc_rdma_free (win );
1381
1398
return ret ;
1382
1399
}
@@ -1428,7 +1445,8 @@ static int ompi_osc_rdma_component_select (struct ompi_win_t *win, void **base,
1428
1445
/* notify all others if something went wrong */
1429
1446
ret = synchronize_errorcode (ret , module -> comm );
1430
1447
if (OPAL_UNLIKELY (OMPI_SUCCESS != ret )) {
1431
- OSC_RDMA_VERBOSE (MCA_BASE_VERBOSE_ERROR , "failed to allocate internal state" );
1448
+ opal_output_verbose (MCA_BASE_VERBOSE_ERROR , ompi_osc_base_framework .framework_output ,
1449
+ "failed to allocate internal state" );
1432
1450
ompi_osc_rdma_free (win );
1433
1451
return ret ;
1434
1452
}
@@ -1479,14 +1497,16 @@ static int ompi_osc_rdma_component_select (struct ompi_win_t *win, void **base,
1479
1497
1480
1498
ret = ompi_osc_rdma_share_data (module );
1481
1499
if (OMPI_SUCCESS != ret ) {
1482
- OSC_RDMA_VERBOSE (MCA_BASE_VERBOSE_ERROR , "failed to share window data with peers" );
1500
+ opal_output_verbose (MCA_BASE_VERBOSE_ERROR , ompi_osc_base_framework .framework_output ,
1501
+ "failed to share window data with peers" );
1483
1502
ompi_osc_rdma_free (win );
1484
1503
} else {
1485
1504
/* for now the leader is always rank 0 in the communicator */
1486
1505
module -> leader = ompi_osc_rdma_module_peer (module , 0 );
1487
1506
1488
- OSC_RDMA_VERBOSE (MCA_BASE_VERBOSE_INFO , "finished creating osc/rdma window with id %s" ,
1489
- ompi_comm_print_cid (module -> comm ));
1507
+ opal_output_verbose (MCA_BASE_VERBOSE_INFO , ompi_osc_base_framework .framework_output ,
1508
+ "finished creating osc/rdma window with id %s" ,
1509
+ ompi_comm_print_cid (module -> comm ));
1490
1510
}
1491
1511
1492
1512
return ret ;
0 commit comments