开发者

Using the same kernel instance for more works

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜