Commit 01100d6a by Marcus Winter

mtapi_opencl_c: fixed issue with amd app sdk

parent e4c059e5
......@@ -188,6 +188,8 @@ static void opencl_task_start(
0, NULL, NULL);
if (CL_SUCCESS == err) {
embb_mtapi_task_set_state(local_task, MTAPI_TASK_RUNNING);
err |= clEnqueueNDRangeKernel(plugin->command_queue,
opencl_action->kernel, 1, NULL,
&global_work_size, &opencl_action->local_work_size, 0, NULL, NULL);
......@@ -197,8 +199,6 @@ static void opencl_task_start(
0, NULL, &opencl_task->kernel_finish_event);
err |= clSetEventCallback(opencl_task->kernel_finish_event,
CL_COMPLETE, opencl_task_complete, opencl_task);
embb_mtapi_task_set_state(local_task, MTAPI_TASK_RUNNING);
}
err |= clFlush(plugin->command_queue);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment