Nathalie Furmento 5 lat temu
rodzic
commit
150a78c2a4
2 zmienionych plików z 2 dodań i 12 usunięć
  1. 0 11
      mpi/tests/burst_gemm.c
  2. 2 1
      src/core/perfmodel/perfmodel_history.c

+ 0 - 11
mpi/tests/burst_gemm.c

@@ -142,29 +142,22 @@ int main(int argc, char **argv)
 	starpu_task_wait_for_all();
 	starpu_mpi_barrier(MPI_COMM_WORLD);
 
-
 	FPRINTF(stderr, "** Burst warmup **\n");
 	burst_all(mpi_rank);
 
-
 	starpu_sleep(0.3); // sleep to easily distinguish different bursts in traces
 
-
 	FPRINTF(stderr, "** Burst while there is no task available, but workers are polling **\n");
 	burst_all(mpi_rank);
 
-
 	starpu_sleep(0.3); // sleep to easily distinguish different bursts in traces
 
-
 	FPRINTF(stderr, "** Burst while there is no task available, workers are paused **\n");
 	starpu_pause();
 	burst_all(mpi_rank);
 
-
 	starpu_sleep(0.3); // sleep to easily distinguish different bursts in traces
 
-
 	FPRINTF(stderr, "** Burst while workers are really working **\n");
 	if(gemm_submit_tasks() == -ENODEV)
 		goto enodev;
@@ -178,10 +171,8 @@ int main(int argc, char **argv)
 	starpu_task_wait_for_all();
 	starpu_mpi_barrier(MPI_COMM_WORLD);
 
-
 	starpu_sleep(0.3); // sleep to easily distinguish different parts in traces
 
-
 	FPRINTF(stderr, "** Workers are computing, without communications **\n");
 	starpu_pause();
 	if(gemm_submit_tasks() == -ENODEV)
@@ -192,10 +183,8 @@ int main(int argc, char **argv)
 	starpu_task_wait_for_all();
 	starpu_mpi_barrier(MPI_COMM_WORLD);
 
-
 	starpu_sleep(0.3); // sleep to easily distinguish different parts in traces
 
-
 	FPRINTF(stderr, "** Burst while workers are computing, but polling a moment between each task **\n");
 	starpu_pause();
 	gemm_add_polling_dependencies();

+ 2 - 1
src/core/perfmodel/perfmodel_history.c

@@ -1887,7 +1887,8 @@ void _starpu_update_perfmodel_history(struct _starpu_job *j, struct starpu_perfm
 
 				/* For history-based, do not take the first measurement into account, it is very often quite bogus */
 				/* TODO: it'd be good to use a better estimation heuristic, like the median, or latest n values, etc. */
-				if (model->type != STARPU_HISTORY_BASED) {
+				if (model->type != STARPU_HISTORY_BASED)
+				{
 					entry->sum = measured;
 					entry->sum2 = measured*measured;
 					entry->nsample = 1;