if i am having two gpu say intel and nvidia (i have cpu of intel ,graphics inbuilt) if i am not doing anything for platform in opencl program and i am using sdks in my visual studio platform of NVIDIA then which gpu will be used by the program (intel graphics or nvidia).
If I’m not mistaken you have to specify the platform you want to use. If you pass NULL to clGetDeviceID you’ll get an invalid platform error. If you choose nvidia the nvidia gpu will be used.