title: How to get max compute units with the C++ wrapper?
body: <p>I am a C++ and OpenCL noob. On page 38 of the <a href="http://www.khronos.org/registry/cl/specs/opencl-1.2.pdf" rel="nofollow">OpenCL spec</a> there is a list of arguments you can supply to clGetDeviceInfo to get all sorts of information. The C++ wrapper seems to offer far less information. <a href="http://developer.amd.com/wordpress/media/2012/12/cpp_api_r06.pdf" rel="nofollow">See page 5 of the C++ wrapper</a>. Maybe I have just not read enough to know how to use these functions properly.</p>
  
  <p>This is working fine for me but I would like to be able to get all of the data listed in the first link.</p>
  
  <pre><code>for(int i = 0; i &lt; devices.size(); i++) {
      string deviceName, builtInKernels;
      cl::vector&lt;size_t&gt; maxWO;
      devices[i].getInfo(CL_DEVICE_NAME, &amp;deviceName);
      devices[i].getInfo(CL_DEVICE_BUILT_IN_KERNELS, &amp;builtInKernels);
      cout &lt;&lt; "DEVICE_NAME - " &lt;&lt; deviceName &lt;&lt; endl;
      cout &lt;&lt; "DEVICE_BUILT_IN_KERNELS - " &lt;&lt; builtInKernels &lt;&lt; endl;
      cout &lt;&lt; "DEVICE_MAX_WORK_ITEMS - " &lt;&lt; maxWO[0] &lt;&lt; endl;
  }
  </code></pre>