Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以通过 clGetDeviceInfo 之类的功能在一个计算单元上获得最大扭曲/工作组吗?从我发现的数字仅取决于计算能力。那么有什么功能可以检测到它吗?
谢谢jikra
我认为您正在寻找clGetKernelWorkGroupInfo。
具体来说,CL_KERNEL_WORK_GROUP_SIZE 和 CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE 将帮助您调整工作组大小。