summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYang Rong <rong.r.yang@intel.com>2016-05-20 14:08:31 +0800
committerYang Rong <rong.r.yang@intel.com>2016-06-12 14:22:16 +0800
commit7b35b1acdbb36fb6159738914758c2d0fb881df4 (patch)
tree6dceb9b08a8206228e9e9460c83ac1f3fc857b8a /include
parent5599388b957e23c4c09f0f104a465a6741cd3722 (diff)
OCL20: handle device enqueue in runtime.
There are some step to handle device enqueue: 1. allocate the device enqueue bo to store the device enqueue information for parent kernel. Add must convert all global buffers to SVM buffers to make sure the child kernels have the same GPU address. 2. When flush the command, check whether have device enqueue or not. If has device enqueue, must wait finish and parse the device enqueue info. 3. Start the child ndrange according the device enqueue info, and the parent's global buffers as the exec info. Because of non uniform workgroup size, one enqueue api will flush serveral times, but device enqueue only need handle once, so add a flag to function cl_command_queue_flush to indicate the last flush. Signed-off-by: Yang Rong <rong.r.yang@intel.com> Reviewed-by: Pan Xiuli <xiuli.pan@intel.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions