Skip to content

Commit

Permalink
mpi/src/starpu_mpi_datatype.c: use MPI_Type_create_hvector() instead …
Browse files Browse the repository at this point in the history
…of MPI_Type_hvector() which is deprecated

(cherry picked from commit fb55b58)
  • Loading branch information
nfurmento committed Feb 14, 2019
1 parent dba82d4 commit 771e9fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mpi/src/starpu_mpi_datatype.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* StarPU --- Runtime system for heterogeneous multicore architectures.
*
* Copyright (C) 2010-2017 CNRS
* Copyright (C) 2010-2017,2019 CNRS
* Copyright (C) 2011,2012,2015 Inria
* Copyright (C) 2009-2011,2014,2015,2018 Université de Bordeaux
*
Expand Down Expand Up @@ -83,7 +83,7 @@ static void handle_to_datatype_block(starpu_data_handle_t data_handle, MPI_Datat
ret = MPI_Type_commit(&datatype_2dlayer);
STARPU_ASSERT_MSG(ret == MPI_SUCCESS, "MPI_Type_commit failed");

ret = MPI_Type_hvector(nz, 1, ldz*elemsize, datatype_2dlayer, datatype);
ret = MPI_Type_create_hvector(nz, 1, ldz*elemsize, datatype_2dlayer, datatype);
STARPU_ASSERT_MSG(ret == MPI_SUCCESS, "MPI_Type_hvector failed");

ret = MPI_Type_commit(datatype);
Expand Down

0 comments on commit 771e9fa

Please sign in to comment.