소스 검색

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

Samuel Thibault 11 년 전
부모
커밋
95993904fc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
 				}