@@ -219,7 +219,7 @@ int tst_type_init (int * num_types)
219
219
/*
220
220
* MPI_HVECTOR_INT
221
221
*/
222
- MPI_Type_hvector (TYPES_NUM_REPEAT , 1 , sizeof (int ), MPI_INT , & (types [num ].mpi_datatype ));
222
+ MPI_Type_create_hvector (TYPES_NUM_REPEAT , 1 , sizeof (int ), MPI_INT , & (types [num ].mpi_datatype ));
223
223
MPI_Type_commit (& (types [num ].mpi_datatype ));
224
224
types [num ].type_num = TYPES_NUM_REPEAT ;
225
225
for (i = 0 ; i < TYPES_NUM_REPEAT ; i ++ )
@@ -259,7 +259,7 @@ int tst_type_init (int * num_types)
259
259
block [i ] = 1 ;
260
260
dis [i ] = i * sizeof (int );
261
261
}
262
- MPI_Type_hindexed (TYPES_NUM_REPEAT , block , dis , MPI_INT , & (types [num ].mpi_datatype ));
262
+ MPI_Type_create_hindexed (TYPES_NUM_REPEAT , block , dis , MPI_INT , & (types [num ].mpi_datatype ));
263
263
MPI_Type_commit (& (types [num ].mpi_datatype ));
264
264
types [num ].type_num = TYPES_NUM_REPEAT ;
265
265
for (i = 0 ; i < TYPES_NUM_REPEAT ; i ++ )
@@ -285,7 +285,7 @@ int tst_type_init (int * num_types)
285
285
dis_struct [0 ] = 0 ;
286
286
dtype [0 ] = MPI_INT ;
287
287
288
- MPI_Type_struct (1 , block_struct , dis_struct , dtype , & (types [num ].mpi_datatype ));
288
+ MPI_Type_create_struct (1 , block_struct , dis_struct , dtype , & (types [num ].mpi_datatype ));
289
289
MPI_Type_commit (& (types [num ].mpi_datatype ));
290
290
291
291
types [num ].type_num = TYPES_NUM_REPEAT ;
@@ -307,21 +307,21 @@ int tst_type_init (int * num_types)
307
307
MPI_Aint mix_base ;
308
308
struct tst_mpi_type_mix type_tmp ;
309
309
310
- MPI_Address (& (type_tmp .a ), disp_mix );
311
- MPI_Address (& (type_tmp .b ), disp_mix + 1 );
312
- MPI_Address (& (type_tmp .c ), disp_mix + 2 );
313
- MPI_Address (& (type_tmp .d ), disp_mix + 3 );
314
- MPI_Address (& (type_tmp .e ), disp_mix + 4 );
315
- MPI_Address (& (type_tmp .f ), disp_mix + 5 );
316
- MPI_Address (& (type_tmp .g ), disp_mix + 6 );
317
- MPI_Address (& (type_tmp .h ), disp_mix + 7 );
318
- MPI_Address (& (type_tmp .i ), disp_mix + 8 );
319
- MPI_Address (& (type_tmp .j ), disp_mix + 9 );
320
- MPI_Address (& (type_tmp .k ), disp_mix + 10 );
310
+ MPI_Get_address (& (type_tmp .a ), disp_mix );
311
+ MPI_Get_address (& (type_tmp .b ), disp_mix + 1 );
312
+ MPI_Get_address (& (type_tmp .c ), disp_mix + 2 );
313
+ MPI_Get_address (& (type_tmp .d ), disp_mix + 3 );
314
+ MPI_Get_address (& (type_tmp .e ), disp_mix + 4 );
315
+ MPI_Get_address (& (type_tmp .f ), disp_mix + 5 );
316
+ MPI_Get_address (& (type_tmp .g ), disp_mix + 6 );
317
+ MPI_Get_address (& (type_tmp .h ), disp_mix + 7 );
318
+ MPI_Get_address (& (type_tmp .i ), disp_mix + 8 );
319
+ MPI_Get_address (& (type_tmp .j ), disp_mix + 9 );
320
+ MPI_Get_address (& (type_tmp .k ), disp_mix + 10 );
321
321
mix_base = disp_mix [0 ];
322
322
for (i = 0 ; i < 11 ; i ++ ) disp_mix [i ] -= mix_base ;
323
323
for (i = 0 ; i < 11 ; i ++ ) block_mix [i ] = 1 ;
324
- MPI_Type_struct (11 , block_mix , disp_mix , mix_type , & (types [num ].mpi_datatype ));
324
+ MPI_Type_create_struct (11 , block_mix , disp_mix , mix_type , & (types [num ].mpi_datatype ));
325
325
MPI_Type_commit (& (types [num ].mpi_datatype ));
326
326
types [num ].type_num = 11 ;
327
327
types [num ].type_mapping [0 ] = TST_MPI_CHAR ;
@@ -368,17 +368,17 @@ int tst_type_init (int * num_types)
368
368
MPI_Type_commit (&(mix_type[4]));
369
369
MPI_Type_commit (&(mix_type[5]));
370
370
*/
371
- MPI_Address (& (type_tmp_array .a [0 ]), disp_mix );
372
- MPI_Address (& (type_tmp_array .b [0 ]), disp_mix + 1 );
373
- MPI_Address (& (type_tmp_array .c [0 ]), disp_mix + 2 );
374
- MPI_Address (& (type_tmp_array .d [0 ]), disp_mix + 3 );
375
- MPI_Address (& (type_tmp_array .e [0 ]), disp_mix + 4 );
376
- MPI_Address (& (type_tmp_array .f [0 ]), disp_mix + 5 );
371
+ MPI_Get_address (& (type_tmp_array .a [0 ]), disp_mix );
372
+ MPI_Get_address (& (type_tmp_array .b [0 ]), disp_mix + 1 );
373
+ MPI_Get_address (& (type_tmp_array .c [0 ]), disp_mix + 2 );
374
+ MPI_Get_address (& (type_tmp_array .d [0 ]), disp_mix + 3 );
375
+ MPI_Get_address (& (type_tmp_array .e [0 ]), disp_mix + 4 );
376
+ MPI_Get_address (& (type_tmp_array .f [0 ]), disp_mix + 5 );
377
377
378
378
mix_base = disp_mix [0 ];
379
379
for (i = 0 ; i < 6 ; i ++ ) disp_mix [i ] -= mix_base ;
380
380
for (i = 0 ; i < 6 ; i ++ ) block_mix [i ] = 1 ;
381
- MPI_Type_struct (6 , block_mix , disp_mix , mix_type , & (types [num ].mpi_datatype ));
381
+ MPI_Type_create_struct (6 , block_mix , disp_mix , mix_type , & (types [num ].mpi_datatype ));
382
382
383
383
MPI_Type_free (& (mix_type [0 ]));
384
384
MPI_Type_free (& (mix_type [1 ]));
@@ -429,7 +429,7 @@ int tst_type_init (int * num_types)
429
429
MPI_DOUBLE ,
430
430
MPI_UB };
431
431
for (i = 0 ; i < 8 ; i ++ ) block_mix [i ]= 1 ;
432
- MPI_Type_struct (8 , block_mix , disp_array , mix_type , & (types [num ].mpi_datatype ));
432
+ MPI_Type_create_struct (8 , block_mix , disp_array , mix_type , & (types [num ].mpi_datatype ));
433
433
MPI_Type_commit (& (types [num ].mpi_datatype ));
434
434
types [num ].type_num = 6 ;
435
435
types [num ].type_mapping [0 ] = TST_MPI_CHAR ;
0 commit comments