How to get compute unit ID at runtime in OpenCL?

心已入冬 提交于 2019-12-12 06:37:24

问题


Is there a way to get the compute unit ID a work group is running on during runtime? I know that CUDA has some assembly code to do this.


回答1:


No, there isn't a way to get the compute unit's ID. Your code should use the work group ID instead. What are you trying to achieve?

I am a little surprised that CUDA supports this, please tell me which assembly code instruction does this.



来源:https://stackoverflow.com/questions/19547197/how-to-get-compute-unit-id-at-runtime-in-opencl

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!