|Home > Execution stages of an OpenCL application > Finding the available compute devices|
To set up OpenCL, you must choose compute devices. Call clGetDeviceIDs() to query the OpenCL driver for a list of devices on the machine that support OpenCL.
You can restrict your search to a particular type of device or to any combination of device types. You must also specify the maximum number of device IDs that you want returned.
If you have two or more devices, you can schedule different NDranges for processing on the devices.