Преглед изворни кода

Fix tasks_size_overhead taking a long time on simgrid profiles

Samuel Thibault пре 8 година
родитељ
комит
c3d5cca5af
1 измењених фајлова са 5 додато и 0 уклоњено
  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;
 	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);
+#endif
 
 	starpu_shutdown();