API for GPU usage under Mac OS

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.

3 posts / novo 0
Último post
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.

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.

Quote:

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 .

Deixar um comentário

Faça login para adicionar um comentário. Não é membro? Inscreva-se hoje mesmo