Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
7 years ago

Alternate solution for clGetPlatformIds

Hi,

I have implemented a sample OpenCL program. In which kernel is consuming ~10 milli seconds and host API calls are consuming ~950 milli seconds.

clGetPlatformIds() is consuming 840 milli seconds of 950 milli seconds. I'm using single platform. Is there any way to determine the platformId and to hardcode the value without invoking clGetPlatformIds().

Is there any alternate/optimized solution for getting the platformId?
No RepliesBe the first to reply