|
@@ -27,12 +27,11 @@
|
|
|
#include <core/sched_policy.h>
|
|
|
#include <top/starpu_top_core.h>
|
|
|
|
|
|
-void _starpu_driver_start_job(struct _starpu_worker *args, struct _starpu_job *j, struct timespec *codelet_start, int rank)
|
|
|
+void _starpu_driver_start_job(struct _starpu_worker *args, struct _starpu_job *j, struct timespec *codelet_start, int rank, int profiling)
|
|
|
{
|
|
|
struct starpu_task *task = j->task;
|
|
|
struct starpu_codelet *cl = task->cl;
|
|
|
struct starpu_task_profiling_info *profiling_info;
|
|
|
- int profiling = starpu_profiling_status_get();
|
|
|
int starpu_top=_starpu_top_status_get();
|
|
|
int workerid = args->workerid;
|
|
|
unsigned calibrate_model = 0;
|
|
@@ -65,12 +64,11 @@ void _starpu_driver_start_job(struct _starpu_worker *args, struct _starpu_job *j
|
|
|
_STARPU_TRACE_START_CODELET_BODY(j);
|
|
|
}
|
|
|
|
|
|
-void _starpu_driver_end_job(struct _starpu_worker *args, struct _starpu_job *j, enum starpu_perf_archtype perf_arch STARPU_ATTRIBUTE_UNUSED, struct timespec *codelet_end, int rank)
|
|
|
+void _starpu_driver_end_job(struct _starpu_worker *args, struct _starpu_job *j, enum starpu_perf_archtype perf_arch STARPU_ATTRIBUTE_UNUSED, struct timespec *codelet_end, int rank, int profiling)
|
|
|
{
|
|
|
struct starpu_task *task = j->task;
|
|
|
struct starpu_codelet *cl = task->cl;
|
|
|
struct starpu_task_profiling_info *profiling_info = task->profiling_info;
|
|
|
- int profiling = starpu_profiling_status_get();
|
|
|
int starpu_top=_starpu_top_status_get();
|
|
|
int workerid = args->workerid;
|
|
|
unsigned calibrate_model = 0;
|
|
@@ -93,7 +91,7 @@ void _starpu_driver_end_job(struct _starpu_worker *args, struct _starpu_job *j,
|
|
|
}
|
|
|
void _starpu_driver_update_job_feedback(struct _starpu_job *j, struct _starpu_worker *worker_args,
|
|
|
enum starpu_perf_archtype perf_arch,
|
|
|
- struct timespec *codelet_start, struct timespec *codelet_end)
|
|
|
+ struct timespec *codelet_start, struct timespec *codelet_end, int profiling)
|
|
|
{
|
|
|
struct starpu_task_profiling_info *profiling_info = j->task->profiling_info;
|
|
|
struct timespec measured_ts;
|
|
@@ -101,7 +99,6 @@ void _starpu_driver_update_job_feedback(struct _starpu_job *j, struct _starpu_wo
|
|
|
int workerid = worker_args->workerid;
|
|
|
struct starpu_codelet *cl = j->task->cl;
|
|
|
int calibrate_model = 0;
|
|
|
- int profiling = starpu_profiling_status_get();
|
|
|
int updated = 0;
|
|
|
|
|
|
if (cl->model && cl->model->benchmarking)
|