Skip to content
Snippets Groups Projects
Forked from Andreas Klöckner / loopy
4958 commits behind the upstream repository.

Welcome to loopy's documentation!

loopy is a code generator for array-based code in the OpenCL/CUDA execution model. Here's a very simple example of how to double the entries of a vector using loopy:

This example is included in the :mod:`loopy` distribution as :download:`examples/python/hello-loopy.py <../examples/python/hello-loopy.py>`.

When you run this script, the following kernel is generated, compiled, and executed:

(See the full example for how to print the generated code.)

Places on the web related to Loopy

  • Python package index (download releases) Note the extra '.' in the PyPI identifier!
  • Github (get latest source code, file bugs)
  • Wiki (read installation tips, get examples, read FAQ)
  • Homepage

Table of Contents

If you're only just learning about loopy, consider the following paper on loo.py that may serve as a good introduction.

Please check :ref:`installation` to get started.

Indices and tables

  • :ref:`genindex`
  • :ref:`modindex`
  • :ref:`search`