We'll now query OpenCL devices that are installed on your platforms.
The code listing discussed in the How to do it… section presents an abbreviated portion of the code in
Ch1/device_details/device_details.c. This code demonstrates how you can obtain the types of devices installed on your platform via
clGetDeviceIDs. You'll use that information to retrieve detailed data about the device by passing it to
For this recipe, you need to completely reference the appropriate chapter code. Pay attention to the included comments, as they would help you understand each individual function. We've included the main part of this recipe with highlighted commentary:
/* C-function ...