开发者

Using the same kernel instance for more works

开发者 https://www.devze.com 2023-03-16 03:09 出处:网络
After i 开发者_如何学运维call clEnqueueNDRangeKernel using one cl_kernel instance can i use the same instance to enqueue an other task before the execution of the first one is finished?

After i 开发者_如何学运维call clEnqueueNDRangeKernel using one cl_kernel instance can i use the same instance to enqueue an other task before the execution of the first one is finished? Or i need to instantiate an other cl_kernel ?


yes this should be possible. If you enqueue a kernel a copy of the kernel state is enqueued. otherwise you wouldn't be able to modify the kernel args until the kernel command finishes execution. but i agree that this is not specified very clearly.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号