Ver código fonte

MPI types should always be committed before use

Samuel Thibault 15 anos atrás
pai
commit
a4f14ca856
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      mpi/starpu_mpi_datatype.c

+ 1 - 0
mpi/starpu_mpi_datatype.c

@@ -61,6 +61,7 @@ static int handle_to_datatype_block(starpu_data_handle data_handle, MPI_Datatype
 
 	MPI_Datatype datatype_2dlayer;
 	MPI_Type_vector(ny, nx*elemsize, ldy*elemsize, MPI_BYTE, &datatype_2dlayer);
+	MPI_Type_commit(&datatype_2dlayer);
 
 	MPI_Type_hvector(nz, 1, ldz*elemsize, datatype_2dlayer, datatype);