Selecting number of CPU cores in OpenCL

泪湿孤枕 提交于 2019-12-06 01:35:20

There is no standard way to do this. OpenCL will try to use all of the resources available on an OpenCL device.

One possibility you could look into is the device fission extension. It allows you to divide the device (in this case the CPU) into smaller logical devices. It is currently supported on CPUs by AMD's implementation at least. Do a search and you'll find some more resources from AMD as well.

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