Browse Source

make _starpu_driver_update_job_feedback conditions match timing record code

Samuel Thibault 13 years ago
parent
commit
9e9b10d5f7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/drivers/driver_common/driver_common.c

+ 2 - 2
src/drivers/driver_common/driver_common.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010, 2011  Université de Bordeaux 1
+ * Copyright (C) 2010-2012  Université de Bordeaux 1
  * Copyright (C) 2010, 2011, 2012  Centre National de la Recherche Scientifique
  * Copyright (C) 2011  Télécom-SudParis
  *
@@ -107,7 +107,7 @@ void _starpu_driver_update_job_feedback(struct _starpu_job *j, struct _starpu_wo
 	if (cl->model && _starpu_get_calibrate_flag())
 		calibrate_model = 1;
 
-	if (profiling_info || calibrate_model)
+	if ((profiling && profiling_info) || calibrate_model)
 	{
 		starpu_timespec_sub(codelet_end, codelet_start, &measured_ts);
 		measured = starpu_timing_timespec_to_us(&measured_ts);