ソースを参照

Reduce check accurracy, we do not have so much precision actually

Samuel Thibault 5 年 前
コミット
61374c1585

+ 2 - 2
examples/cholesky/cholesky_implicit.c

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2011-2013,2015                           Inria
- * Copyright (C) 2009-2017                                Université de Bordeaux
+ * Copyright (C) 2009-2017,2020                           Université de Bordeaux
  * Copyright (C) 2010-2013,2015-2017                      CNRS
  * Copyright (C) 2013                                     Thibaut Lambert
  * Copyright (C) 2010                                     Mehdi Juhoor
@@ -308,7 +308,7 @@ static void execute_cholesky(unsigned size, unsigned nblocks)
 				{
 	                                float orig = (1.0f/(1.0f+i+j)) + ((i == j)?1.0f*size:0.0f);
 	                                float err = fabsf(test_mat[j +i*size] - orig) / orig;
-	                                if (err > 0.00001)
+	                                if (err > 0.0001)
 					{
 	                                        FPRINTF(stderr, "Error[%u, %u] --> %2.6f != %2.6f (err %2.6f)\n", i, j, test_mat[j +i*size], orig, err);
 	                                        assert(0);

+ 1 - 1
mpi/examples/matrix_decomposition/mpi_cholesky.c

@@ -63,7 +63,7 @@ int main(int argc, char **argv)
 #ifndef STARPU_SIMGRID
 	matrix_display(bmat, rank);
 
-	dw_cholesky_check_computation(bmat, rank, nodes, &correctness, &flops, 0.00001);
+	dw_cholesky_check_computation(bmat, rank, nodes, &correctness, &flops, 0.0001);
 #endif
 
 	matrix_free(&bmat, rank, nodes, 1);

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

@@ -57,7 +57,7 @@ int main(int argc, char **argv)
 	{
 		matrix_display(bmat, rank);
 
-		dw_cholesky_check_computation(bmat, rank, nodes, &correctness, &flops, 0.00001);
+		dw_cholesky_check_computation(bmat, rank, nodes, &correctness, &flops, 0.0001);
 	}
 #endif
 	matrix_free(&bmat, rank, nodes, 0);