|
@@ -575,12 +575,10 @@ static int _starpu_opencl_execute_job(starpu_job_t j, struct starpu_worker_s *ar
|
|
|
func(task->interfaces, task->cl_arg);
|
|
|
}
|
|
|
else {
|
|
|
- if (cl->opencl_funcs[j->nimpl] != NULL) {
|
|
|
- /* _STARPU_DEBUG("OpenCL driver : running kernel (%d)\n", j->nimpl); */
|
|
|
- cl_func func = cl->opencl_funcs[j->nimpl];
|
|
|
- STARPU_ASSERT(func);
|
|
|
- func(task->interfaces, task->cl_arg);
|
|
|
- }
|
|
|
+ /* _STARPU_DEBUG("OpenCL driver : running kernel (%d)\n", j->nimpl); */
|
|
|
+ cl_func func = cl->opencl_funcs[j->nimpl];
|
|
|
+ STARPU_ASSERT(func);
|
|
|
+ func(task->interfaces, task->cl_arg);
|
|
|
}
|
|
|
|
|
|
_starpu_driver_end_job(args, j, &codelet_end, 0);
|