Browse Source

src/drivers/opencl/driver_opencl.c: fix field name

Nathalie Furmento 10 years ago
parent
commit
62538f2fdc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/drivers/opencl/driver_opencl.c

+ 1 - 1
src/drivers/opencl/driver_opencl.c

@@ -871,7 +871,7 @@ static void _starpu_opencl_stop_job(struct _starpu_job *j, struct _starpu_worker
 
 	struct _starpu_sched_ctx *sched_ctx = _starpu_sched_ctx_get_sched_ctx_for_worker_and_job(worker, j);
 	STARPU_ASSERT_MSG(sched_ctx != NULL, "there should be a worker %d in the ctx of this job \n", worker->workerid);
-	if(!sched_ctx->policy)
+	if(!sched_ctx->sched_policy)
 		_starpu_driver_update_job_feedback(j, worker, &sched_ctx->perf_arch, &j->cl_start, &codelet_end, profiling);
 	else
 		_starpu_driver_update_job_feedback(j, worker, &worker->perf_arch, &j->cl_start, &codelet_end, profiling);