Explorar el Código

mpi_lu: made diagonal even stronger to avoid computation weaknesses

Samuel Thibault hace 5 años
padre
commit
634f525b20
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      mpi/examples/mpi_lu/plu_example.c

+ 2 - 1
mpi/examples/mpi_lu/plu_example.c

@@ -268,7 +268,8 @@ static void init_matrix(int rank)
 					unsigned tmp;
 					for (tmp = 0; tmp < size/nblocks; tmp++)
 					{
-						(*blockptr)[tmp*((size/nblocks)+1)] += (TYPE)10*nblocks;
+						(*blockptr)[tmp*((size/nblocks)+1)] += 1;
+						(*blockptr)[tmp*((size/nblocks)+1)] *= 100;
 					}
 				}