Local workgroup size = NULL OpenCL

▼魔方 西西 提交于 2020-01-05 10:33:34

问题


Is there a way to get the used local workgroup size, when you set the value of the local workgroup size in the enqueueNDRangeKernel() function to NULL?


回答1:


There is no standard runtime API for doing this in OpenCL. If you really need to know, you could have the kernel retrieve the work-group size with the get_local_size() function and store the value(s) to a buffer.

The vendor profilers (AMD's CodeXL, Intel's VTune, NVIDIA's command-line profiler) should also tell you what they picked.



来源:https://stackoverflow.com/questions/28811839/local-workgroup-size-null-opencl

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