Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
55 Views

API for GPU usage under Mac OS

    Now I use OpenCL with Intel Iris GPU to process image  under Mac OS. Before I lunch the OpenCL kernel, I need know the GPU usage.

   I wonder that whether there  is the API that i can use in the program to query the GPU usage.

   thx.

0 Kudos
2 Replies
Highlighted
Employee
55 Views

Lucas,

Do you mean, you want to know how busy are the GPU execution units? You don't need to worry about that: OpenCL kernel will be placed into a queue and gets processed once GPU is ready for it. Otherwise, I am not aware of the APIs on MacOS that give you this info: please contact the Apple support.

0 Kudos
Highlighted
Beginner
55 Views

Robert I. (Intel) wrote:

Lucas,

Do you mean, you want to know how busy are the GPU execution units? You don't need to worry about that: OpenCL kernel will be placed into a queue and gets processed once GPU is ready for it. Otherwise, I am not aware of the APIs on MacOS that give you this info: please contact the Apple support.

Robert, thx.

I know what you said. I put OpenCL for  real-time image  processing. So if the GPU is busy, I will not launch the kernel to GPU, I will select CPU to process.

Anyway, thx .

0 Kudos