本地工作组大小= NULL OpenCL [英] Local workgroup size = NULL OpenCL

查看:84
本文介绍了本地工作组大小= NULL OpenCL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您在enqueueNDRangeKernel()函数中将本地工作组大小的值设置为NULL时,是否可以获取使用的本地工作组大小?

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?

推荐答案

OpenCL中没有用于执行此操作的标准运行时API.如果您真的需要知道,您可以让内核使用get_local_size()函数检索工作组的大小,然后将值存储到缓冲区中.

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.

供应商分析器(AMD的CodeXL,英特尔的VTune,NVIDIA的命令行分析器)也应告诉您他们选择了什么.

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

这篇关于本地工作组大小= NULL OpenCL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆