Browse Source

Fix tasks_size_overhead taking a long time on simgrid profiles

Samuel Thibault 8 years ago
parent
commit
c3d5cca5af
1 changed files with 5 additions and 0 deletions
  1. 5 0
      tests/microbenchs/tasks_size_overhead.c

+ 5 - 0
tests/microbenchs/tasks_size_overhead.c

@@ -120,7 +120,12 @@ int main(int argc, char **argv)
 	if (ret == -ENODEV) return STARPU_TEST_SKIPPED;
 	if (ret == -ENODEV) return STARPU_TEST_SKIPPED;
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_init");
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_init");
 
 
+#ifdef STARPU_SIMGRID
+	/* This will get serialized, avoid spending too much time on it. */
+	totcpus = 2;
+#else
 	totcpus = starpu_worker_get_count_by_type(STARPU_CPU_WORKER);
 	totcpus = starpu_worker_get_count_by_type(STARPU_CPU_WORKER);
+#endif
 
 
 	starpu_shutdown();
 	starpu_shutdown();