Parcourir la source

src/drivers/driver_common/driver_common.c: generate fxt traces for the codelet execution on all workers (and not only the master)

Nathalie Furmento il y a 11 ans
Parent
commit
2478efaba9
1 fichiers modifiés avec 2 ajouts et 5 suppressions
  1. 2 5
      src/drivers/driver_common/driver_common.c

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

@@ -97,9 +97,7 @@ void _starpu_driver_start_job(struct _starpu_worker *worker, struct _starpu_job
 				}
 			}
 		}
-		if(sched_ctx->main_master == worker->workerid)
-			/* if the worker is the master of a ctx trace the perf_arch of the context */
-			_STARPU_TRACE_START_CODELET_BODY(j, j->nimpl, &sched_ctx->perf_arch, workerid);
+		_STARPU_TRACE_START_CODELET_BODY(j, j->nimpl, &sched_ctx->perf_arch, workerid);
 	}
 	else
 		_STARPU_TRACE_START_CODELET_BODY(j, j->nimpl, perf_arch, workerid);
@@ -123,8 +121,7 @@ void _starpu_driver_end_job(struct _starpu_worker *worker, struct _starpu_job *j
 	_starpu_perfmodel_create_comb_if_needed(perf_arch);
 	if (!sched_ctx->sched_policy)
 	{
-		if(sched_ctx->main_master == worker->workerid)
-			_STARPU_TRACE_END_CODELET_BODY(j, j->nimpl, &(sched_ctx->perf_arch), workerid);
+		_STARPU_TRACE_END_CODELET_BODY(j, j->nimpl, &(sched_ctx->perf_arch), workerid);
 	}
 	else
 		_STARPU_TRACE_END_CODELET_BODY(j, j->nimpl, perf_arch, workerid);