Explorar el Código

Fix test with no CPU

Samuel Thibault hace 10 años
padre
commit
0a8f88728a
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      examples/sched_ctx/parallel_tasks_reuse_handle.c

+ 3 - 0
examples/sched_ctx/parallel_tasks_reuse_handle.c

@@ -201,11 +201,14 @@ int main(int argc, char **argv)
 				    STARPU_SCHED_CTX, main_context.id,
 				    0);
 		ret=starpu_task_submit(t);
+		if (ret == -ENODEV)
+			goto out;
 		STARPU_CHECK_RETURN_VALUE(ret, "starpu_task_submit");
 	}
 	
 	
 
+out:
 	/* wait for all tasks at the end*/
 	starpu_task_wait_for_all();