Explorar el Código

keep eager as default. print error message on stderr

Samuel Thibault hace 13 años
padre
commit
b5a81fca66
Se han modificado 1 ficheros con 2 adiciones y 3 borrados
  1. 2 3
      src/core/sched_policy.c

+ 2 - 3
src/core/sched_policy.c

@@ -170,8 +170,7 @@ static struct starpu_sched_policy *select_sched_policy(struct _starpu_machine_co
 		return selected_policy;
 
 	/* If no policy was specified, we use the greedy policy as a default */
-	//	return &_starpu_sched_eager_policy;
-	return &heft_policy;
+	return &_starpu_sched_eager_policy;
 }
 
 void _starpu_init_sched_policy(struct _starpu_machine_config *config, struct _starpu_sched_ctx *sched_ctx, const char *required_policy)
@@ -385,7 +384,7 @@ int _starpu_push_task(struct _starpu_job *j)
 		ret = sched_ctx->sched_policy->push_task(task);
 		if(ret == -1)
 		{
-			printf("repush task \n");
+			fprintf(stderr, "repush task \n");
 			ret = _starpu_push_task(j);
 		}
 	}