Explorar el Código

Fix freeing matrix before shutting down StarPU

Samuel Thibault hace 5 años
padre
commit
ef997f1d41
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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);