|
@@ -347,11 +347,11 @@ void sched_ctx_hypervisor_move_workers(unsigned sender_sched_ctx, unsigned recei
|
|
|
{
|
|
|
if(nworkers_to_move > 0 && hypervisor.resize[sender_sched_ctx])// && hypervisor.resize[receiver_sched_ctx])
|
|
|
{
|
|
|
- int j;
|
|
|
- printf("resize ctx %d with", sender_sched_ctx);
|
|
|
- for(j = 0; j < nworkers_to_move; j++)
|
|
|
- printf(" %d", workers_to_move[j]);
|
|
|
- printf("\n");
|
|
|
+/* int j; */
|
|
|
+/* printf("resize ctx %d with", sender_sched_ctx); */
|
|
|
+/* for(j = 0; j < nworkers_to_move; j++) */
|
|
|
+/* printf(" %d", workers_to_move[j]); */
|
|
|
+/* printf("\n"); */
|
|
|
|
|
|
int *cpus = (int*) malloc(nworkers_to_move * sizeof(int));
|
|
|
int ncpus;
|
|
@@ -365,11 +365,11 @@ void sched_ctx_hypervisor_move_workers(unsigned sender_sched_ctx, unsigned recei
|
|
|
|
|
|
if(now)
|
|
|
{
|
|
|
- int j;
|
|
|
- printf("remove from ctx %d:", sender_sched_ctx);
|
|
|
- for(j = 0; j < nworkers_to_move; j++)
|
|
|
- printf(" %d", workers_to_move[j]);
|
|
|
- printf("\n");
|
|
|
+/* int j; */
|
|
|
+/* printf("remove from ctx %d:", sender_sched_ctx); */
|
|
|
+/* for(j = 0; j < nworkers_to_move; j++) */
|
|
|
+/* printf(" %d", workers_to_move[j]); */
|
|
|
+/* printf("\n"); */
|
|
|
|
|
|
starpu_remove_workers_from_sched_ctx(workers_to_move, nworkers_to_move, sender_sched_ctx);
|
|
|
}
|
|
@@ -411,10 +411,10 @@ void sched_ctx_hypervisor_add_workers_to_sched_ctx(int* workers_to_add, unsigned
|
|
|
if(nworkers_to_add > 0 && hypervisor.resize[sched_ctx])
|
|
|
{
|
|
|
int j;
|
|
|
- printf("add to ctx %d:", sched_ctx);
|
|
|
- for(j = 0; j < nworkers_to_add; j++)
|
|
|
- printf(" %d", workers_to_add[j]);
|
|
|
- printf("\n");
|
|
|
+/* printf("add to ctx %d:", sched_ctx); */
|
|
|
+/* for(j = 0; j < nworkers_to_add; j++) */
|
|
|
+/* printf(" %d", workers_to_add[j]); */
|
|
|
+/* printf("\n"); */
|
|
|
starpu_add_workers_to_sched_ctx(workers_to_add, nworkers_to_add, sched_ctx);
|
|
|
struct policy_config *new_config = sched_ctx_hypervisor_get_config(sched_ctx);
|
|
|
int i;
|
|
@@ -439,11 +439,11 @@ void sched_ctx_hypervisor_remove_workers_from_sched_ctx(int* workers_to_remove,
|
|
|
|
|
|
if(now)
|
|
|
{
|
|
|
- int j;
|
|
|
- printf("remove from ctx %d:", sched_ctx);
|
|
|
- for(j = 0; j < nworkers_to_remove; j++)
|
|
|
- printf(" %d", workers_to_remove[j]);
|
|
|
- printf("\n");
|
|
|
+/* int j; */
|
|
|
+/* printf("remove from ctx %d:", sched_ctx); */
|
|
|
+/* for(j = 0; j < nworkers_to_remove; j++) */
|
|
|
+/* printf(" %d", workers_to_remove[j]); */
|
|
|
+/* printf("\n"); */
|
|
|
|
|
|
starpu_remove_workers_from_sched_ctx(workers_to_remove, nworkers_to_remove, sched_ctx);
|
|
|
}
|
|
@@ -580,11 +580,11 @@ static unsigned _ack_resize_completed(unsigned sched_ctx, int worker)
|
|
|
whatever the application says */
|
|
|
if(!((hypervisor.resize[sender_sched_ctx] == 0 || hypervisor.resize[receiver_sched_ctx] == 0) && imposed_resize))
|
|
|
{
|
|
|
- int j;
|
|
|
- printf("remove from ctx %d:", sender_sched_ctx);
|
|
|
- for(j = 0; j < nmoved_workers; j++)
|
|
|
- printf(" %d", moved_workers[j]);
|
|
|
- printf("\n");
|
|
|
+/* int j; */
|
|
|
+/* printf("remove from ctx %d:", sender_sched_ctx); */
|
|
|
+/* for(j = 0; j < nmoved_workers; j++) */
|
|
|
+/* printf(" %d", moved_workers[j]); */
|
|
|
+/* printf("\n"); */
|
|
|
|
|
|
starpu_remove_workers_from_sched_ctx(moved_workers, nmoved_workers, sender_sched_ctx);
|
|
|
|