Sfoglia il codice sorgente

Avoid mising STARPU_TASK_PROGRESS with standard output

Samuel Thibault 4 anni fa
parent
commit
020448af69
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. 1 2
      src/core/jobs.c

+ 1 - 2
src/core/jobs.c

@@ -288,8 +288,7 @@ void _starpu_handle_job_termination(struct _starpu_job *j)
 	{
 	{
 		unsigned long jobs = STARPU_ATOMIC_ADDL(&njobs_finished, 1);
 		unsigned long jobs = STARPU_ATOMIC_ADDL(&njobs_finished, 1);
 
 
-		printf("\r%lu tasks finished (last %lu %p)...", jobs, j->job_id, j->task);
-		fflush(stdout);
+		fprintf(stderr,"\r%lu tasks finished (last %lu %p)...", jobs, j->job_id, j->task);
 	}
 	}
 
 
 	struct starpu_task *task = j->task;
 	struct starpu_task *task = j->task;