Explorar el Código

Fix tasks_size_overhead taking a long time on simgrid profiles

Samuel Thibault hace 8 años
padre
commit
c3d5cca5af
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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();