Explorar o código

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

Samuel Thibault %!s(int64=10) %!d(string=hai) anos
pai
achega
95993904fc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
 				}