Pārlūkot izejas kodu

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

Samuel Thibault 10 gadi atpakaļ
vecāks
revīzija
95993904fc
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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;
 				}