Browse Source

Fix freeing matrix before shutting down StarPU

Samuel Thibault 5 years ago
parent
commit
ef997f1d41
1 changed files with 2 additions and 2 deletions
  1. 2 2
      mpi/examples/matrix_decomposition/mpi_cholesky_distributed.c

+ 2 - 2
mpi/examples/matrix_decomposition/mpi_cholesky_distributed.c

@@ -53,11 +53,11 @@ int main(int argc, char **argv)
 
 	dw_cholesky(bmat, size/nblocks, rank, nodes, &timing, &flops);
 
+	matrix_free(&bmat, rank, nodes, 0);
+
 	starpu_cublas_shutdown();
 	starpu_mpi_shutdown();
 
-	matrix_free(&bmat, rank, nodes, 0);
-
 	if (rank == 0)
 	{
 		FPRINTF(stdout, "Computation time (in ms): %2.2f\n", timing/1000);