Selaa lähdekoodia

Use approximation when comparing declared flops, since when printing the performance file we get some rounding

Samuel Thibault 10 vuotta sitten
vanhempi
commit
95993904fc
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/core/perfmodel/perfmodel_history.c

+ 1 - 1
src/core/perfmodel/perfmodel_history.c

@@ -1399,7 +1399,7 @@ void _starpu_update_perfmodel_history(struct _starpu_job *j, struct starpu_perfm
 				{
 					if (entry->flops == 0.)
 						entry->flops = j->task->flops;
-					else if (entry->flops != j->task->flops)
+					else if (((entry->flops - j->task->flops) / entry->flops) > 0.00001)
 						/* Incoherent flops! forget about trying to record flops */
 						entry->flops = NAN;
 				}