Explorar o código

examples/scheduler/dummy_sched.c: add messages to verify the scheduler is properly enabled

Nathalie Furmento %!s(int64=14) %!d(string=hai) anos
pai
achega
b098931dda
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      examples/scheduler/dummy_sched.c

+ 4 - 0
examples/scheduler/dummy_sched.c

@@ -36,6 +36,8 @@ static void init_dummy_sched(struct starpu_machine_topology_s *topology,
 	unsigned workerid;
 	for (workerid = 0; workerid < topology->nworkers; workerid++)
 		starpu_worker_set_sched_condition(workerid, &sched_cond, &sched_mutex);
+
+	fprintf(stderr, "Initialising Dummy scheduler\n");
 }
 
 static void deinit_dummy_sched(struct starpu_machine_topology_s *topology,
@@ -45,6 +47,8 @@ static void deinit_dummy_sched(struct starpu_machine_topology_s *topology,
 
 	pthread_cond_destroy(&sched_cond);
 	pthread_mutex_destroy(&sched_mutex);
+
+	fprintf(stderr, "Destroying Dummy scheduler\n");
 }
 
 static int push_task_dummy(struct starpu_task *task)