Ver código fonte

- remove redundant #ifdef (thanks Nathalie)

Olivier Aumage 8 anos atrás
pai
commit
1ca85501cd
1 arquivos alterados com 3 adições e 4 exclusões
  1. 3 4
      examples/sched_ctx/two_cpu_contexts.c

+ 3 - 4
examples/sched_ctx/two_cpu_contexts.c

@@ -48,11 +48,10 @@ int main(int argc, char **argv)
 	if (ret == -ENODEV)
 		return 77;
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_init");
-#ifdef STARPU_USE_CPU
 	ncpu = starpu_cpu_worker_get_count();
-#else 
-	ncpu = 0;
-#endif
+
+	/* actually we really need at least 2 CPU workers such to allocate 2
+	 * non overlapping contexts */
 	if (ncpu < 2)
 		return 77;
 	procs = calloc(ncpu, sizeof(int));