title: How to pass parameters to ocl kernel using pyopencl?
body: <p>how to pass some parameters, which will be treated in the .cl file as a preprocessor define using pyopencl?</p>
  
  <p>Meaning:</p>
  
  <p><strong>foo.cl</strong></p>
  
  <pre><code># define LIMIT 12
  typedef struct {
      uint i[LIMIT];
  } foomatic;
  </code></pre>
  
  <p>turns to</p>
  
  <p><strong>foo_nodefs.cl</strong></p>
  
  <pre><code>typedef struct {
      uint i[LIMIT]; // python script passing LIMIT to set it
  } foomatic;
  </code></pre>
  
  <p>Thanks,</p>
  
  <p>John</p>