O'Reilly logo
  • Jooyung Han thinks this is interesting:

Listing 2.2. Testing device extensions: device_ext_test.c

From

Cover of OpenCL in Action: How to Accelerate Graphics and Computation

Note

in the first call to clGetDeviceIDs(), pass 0 instead of 1.