Browse Source

mpi/examples/user_datatype/my_interface.c: use MPI_Get_address() instead of MPI_Address() which is deprecated

Nathalie Furmento 6 years ago
parent
commit
d29690f76e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      mpi/examples/user_datatype/my_interface.c

+ 2 - 2
mpi/examples/user_datatype/my_interface.c

@@ -54,8 +54,8 @@ void _starpu_my_data_datatype_allocate(MPI_Datatype *mpi_datatype)
 	struct starpu_my_data *myinterface;
 	myinterface = malloc(sizeof(struct starpu_my_data));
 
-	MPI_Address(myinterface, displacements);
-	MPI_Address(&myinterface[0].c, displacements+1);
+	MPI_Get_address(myinterface, displacements);
+	MPI_Get_address(&myinterface[0].c, displacements+1);
 	displacements[1] -= displacements[0];
 	displacements[0] = 0;