Why I get 100% cpu usage when running opencl kernels on gpu? Is there any way to reduce the cpu utilization?
OpenCL execute kernelss on GPU, but high CPU usage
Posted: Sun, 2021-12-19 18:47
Why I get 100% cpu usage when running opencl kernels on gpu? Is there any way to reduce the cpu utilization?
Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.
1) could you provide example code?
2) where did you mesure CPU's overhead ?
3) wich tools did you use for mesuring CPU's overhead ?
4) did you select OpenCL device with CL_DEVICE_TYPE == CL_DEVICE_TYPE_GPU?
Yes, can you share your sample code and logcat log when you run sample code on device?
Thanks
Bob Du