How Can I select igpu or dgpu to use

I use AMD GPU for tuning with opencl, that means one amd opencl platform with two different opencl device, how can I select which one to use.