瀏覽代碼

pheft does not run tasks in parallel, avoid burning time...

Samuel Thibault 8 年之前
父節點
當前提交
137b4f26b4
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      tests/microbenchs/tasks_size_overhead.c

+ 6 - 1
tests/microbenchs/tasks_size_overhead.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010-2014, 2016  Université de Bordeaux
+ * Copyright (C) 2010-2014, 2016-2017  Université de Bordeaux
  * Copyright (C) 2010, 2011, 2012, 2013, 2016  CNRS
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -155,6 +155,11 @@ int main(int argc, char **argv)
 	struct starpu_conf conf;
 
 	unsigned buffer;
+	char *starpu_sched = getenv("STARPU_SCHED");
+
+	if (starpu_sched && !strcmp(starpu_sched, "pheft"))
+		/* pheft does not run tasks in parallel, avoid burning time... */
+		return STARPU_TEST_SKIPPED;
 
 	/* Get number of CPUs */
 	starpu_conf_init(&conf);