title: OpenCL platform not found
body: <p>I am trying to compile &amp; run the OpenCL example from a book named <a href="https://rads.stackoverflow.com/amzn/click/com/1617290173" rel="nofollow noreferrer" rel="nofollow noreferrer">OpenCL in Action</a> (<a href="http://www.manning.com/scarpino2/source_code_gnu.zip" rel="nofollow noreferrer">Source code here</a> - goto Ch1/matvec). Whenever I compile and run the program I get an error saying "Couldn't find any platforms!".</p>
  
  <p>This originates from:</p>
  
  <pre><code>/* Identify a platform */
  err = clGetPlatformIDs(1, &amp;platform, NULL);
  if(err &lt; 0) {
      perror("Couldn't find any platforms");
      exit(1);
  }
  </code></pre>
  
  <p>I am running Ubuntu 12.04 LTS 32-bit with an Nvidia Quadro FX 540 GPU.
  EDIT: I know this computer has really bad specs, could that be the reason?</p>