Honored Contributor II
07-18-2018 05:53 PM
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?