Altera_Forum
Honored Contributor
7 years agoAlternate 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?