소스 검색

port 11166 from 1.1: entry is also allocated from reading files, also disable helgrind check there

Samuel Thibault 11 년 전
부모
커밋
886afdc84b
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      src/core/perfmodel/perfmodel_history.c

+ 6 - 0
src/core/perfmodel/perfmodel_history.c

@@ -257,6 +257,12 @@ static void parse_per_arch_model_file(FILE *f, struct starpu_perfmodel_per_arch
 		{
 		{
 			entry = (struct starpu_perfmodel_history_entry *) malloc(sizeof(struct starpu_perfmodel_history_entry));
 			entry = (struct starpu_perfmodel_history_entry *) malloc(sizeof(struct starpu_perfmodel_history_entry));
 			STARPU_ASSERT(entry);
 			STARPU_ASSERT(entry);
+
+			/* Tell  helgrind that we do not care about
+			 * racing access to the sampling, we only want a
+			 * good-enough estimation */
+			STARPU_HG_DISABLE_CHECKING(entry->nsample);
+			STARPU_HG_DISABLE_CHECKING(entry->mean);
 		}
 		}
 
 
 		scan_history_entry(f, entry);
 		scan_history_entry(f, entry);