title: CUDA code too large to be expanded
body: <p>I have a very large code for a function that has to be called twice in a kernel.
  The compiler gives me the error: </p>
  
  <blockquote>
    <p>Signal:caught in phase Code_Expansion -- processing aborted.</p>
  </blockquote>
  
  <p>When I try to call the function only once I don't get this error!
  How can I get around this problem? Thank you.</p>