<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>cgen – C-Generation Reference Documentation — cgen 2012.1 documentation</title> <link rel="stylesheet" href="_static/default.css" type="text/css" /> <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '', VERSION: '2012.1', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="_static/jquery.js"></script> <script type="text/javascript" src="_static/underscore.js"></script> <script type="text/javascript" src="_static/doctools.js"></script> <link rel="top" title="cgen 2012.1 documentation" href="index.html" /> <link rel="next" title="License" href="faq.html" /> <link rel="prev" title="Welcome to cgen’s documentation!" href="index.html" /> </head> <body> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="py-modindex.html" title="Python Module Index" >modules</a> |</li> <li class="right" > <a href="faq.html" title="License" accesskey="N">next</a> |</li> <li class="right" > <a href="index.html" title="Welcome to cgen’s documentation!" accesskey="P">previous</a> |</li> <li><a href="index.html">cgen 2012.1 documentation</a> »</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <div class="section" id="module-cgen"> <span id="cgen-c-generation-reference-documentation"></span><h1><a class="reference internal" href="index.html#module-cgen" title="cgen"><tt class="xref py py-mod docutils literal"><span class="pre">cgen</span></tt></a> – C-Generation Reference Documentation<a class="headerlink" href="#module-cgen" title="Permalink to this headline">¶</a></h1> <div class="section" id="data-and-functions"> <h2>Data and Functions<a class="headerlink" href="#data-and-functions" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="preprocessor-code"> <h2>Preprocessor Code<a class="headerlink" href="#preprocessor-code" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="declarators"> <h2>Declarators<a class="headerlink" href="#declarators" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="nested-declarators"> <h2>Nested Declarators<a class="headerlink" href="#nested-declarators" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="declaration-specifiers"> <h2>Declaration Specifiers<a class="headerlink" href="#declaration-specifiers" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="statements"> <h2>Statements<a class="headerlink" href="#statements" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="cgen-cuda-extensions-to-generate-cuda-compatible-c-sources"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">cgen.cuda</span></tt> – Extensions to generate CUDA-compatible C Sources<a class="headerlink" href="#cgen-cuda-extensions-to-generate-cuda-compatible-c-sources" title="Permalink to this headline">¶</a></h2> <p>This module adds a few Nvidia <a class="reference external" href="http://nvidia.com/cuda">CUDA</a> features to cgen’s repertoire. This makes cgen a perfect complement to <a class="reference external" href="http://mathema.tician.de/software/pycuda">PyCuda</a>: cgen generates the code, PyCuda compiles it, uploads it to the GPU and executes it.</p> <p>The PyCuda manual has a tutorial on using the two together.</p> </div> <div class="section" id="cgen-opencl-extensions-to-generate-opencl-compatible-c-sources"> <h2><tt class="xref py py-mod docutils literal"><span class="pre">cgen.opencl</span></tt> – Extensions to generate OpenCL-compatible C Sources<a class="headerlink" href="#cgen-opencl-extensions-to-generate-opencl-compatible-c-sources" title="Permalink to this headline">¶</a></h2> <div class="section" id="kernels-and-kernel-arguments"> <h3>Kernels and Kernel Arguments<a class="headerlink" href="#kernels-and-kernel-arguments" title="Permalink to this headline">¶</a></h3> </div> <div class="section" id="function-attributes"> <h3>Function Attributes<a class="headerlink" href="#function-attributes" title="Permalink to this headline">¶</a></h3> </div> <div class="section" id="vector-pods"> <h3>Vector PODs<a class="headerlink" href="#vector-pods" title="Permalink to this headline">¶</a></h3> </div> </div> </div> </div> </div> </div> <div class="sphinxsidebar"> <div class="sphinxsidebarwrapper"> <h3><a href="index.html">Table Of Contents</a></h3> <ul> <li><a class="reference internal" href="#"><tt class="docutils literal"><span class="pre">cgen</span></tt> – C-Generation Reference Documentation</a><ul> <li><a class="reference internal" href="#data-and-functions">Data and Functions</a></li> <li><a class="reference internal" href="#preprocessor-code">Preprocessor Code</a></li> <li><a class="reference internal" href="#declarators">Declarators</a></li> <li><a class="reference internal" href="#nested-declarators">Nested Declarators</a></li> <li><a class="reference internal" href="#declaration-specifiers">Declaration Specifiers</a></li> <li><a class="reference internal" href="#statements">Statements</a></li> <li><a class="reference internal" href="#cgen-cuda-extensions-to-generate-cuda-compatible-c-sources"><tt class="docutils literal"><span class="pre">cgen.cuda</span></tt> – Extensions to generate CUDA-compatible C Sources</a></li> <li><a class="reference internal" href="#cgen-opencl-extensions-to-generate-opencl-compatible-c-sources"><tt class="docutils literal"><span class="pre">cgen.opencl</span></tt> – Extensions to generate OpenCL-compatible C Sources</a><ul> <li><a class="reference internal" href="#kernels-and-kernel-arguments">Kernels and Kernel Arguments</a></li> <li><a class="reference internal" href="#function-attributes">Function Attributes</a></li> <li><a class="reference internal" href="#vector-pods">Vector PODs</a></li> </ul> </li> </ul> </li> </ul> <h4>Previous topic</h4> <p class="topless"><a href="index.html" title="previous chapter">Welcome to cgen’s documentation!</a></p> <h4>Next topic</h4> <p class="topless"><a href="faq.html" title="next chapter">License</a></p> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="_sources/cgen.txt" rel="nofollow">Show Source</a></li> </ul> <div id="searchbox" style="display: none"> <h3>Quick search</h3> <form class="search" action="search.html" method="get"> <input type="text" name="q" /> <input type="submit" value="Go" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> <p class="searchtip" style="font-size: 90%"> Enter search terms or a module, class or function name. </p> </div> <script type="text/javascript">$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="genindex.html" title="General Index" >index</a></li> <li class="right" > <a href="py-modindex.html" title="Python Module Index" >modules</a> |</li> <li class="right" > <a href="faq.html" title="License" >next</a> |</li> <li class="right" > <a href="index.html" title="Welcome to cgen’s documentation!" >previous</a> |</li> <li><a href="index.html">cgen 2012.1 documentation</a> »</li> </ul> </div> <div class="footer"> © Copyright 2011, Andreas Kloeckner. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3. </div> </body> </html>