瀏覽代碼

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));
 			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);