Thanks to visit codestin.com
Credit goes to pypi.org

Skip to main content

A code generator for array-based code on CPUs and GPUs

Project description

Gitlab Build Status Github Build Status Python Package Index Release Page Zenodo DOI for latest release

Loopy lets you easily generate the tedious, complicated code that is necessary to get good performance out of GPUs and multi-core CPUs. Loopy’s core idea is that a computation should be described simply and then transformed into a version that gets high performance. This transformation takes place under user control, from within Python.

It can capture the following types of optimizations:

  • Vector and multi-core parallelism in the OpenCL/CUDA model

  • Data layout transformations (structure of arrays to array of structures)

  • Loop unrolling

  • Loop tiling with efficient handling of boundary cases

  • Prefetching/copy optimizations

  • Instruction level parallelism

  • and many more!

Loopy targets array-type computations, such as the following:

  • dense linear algebra,

  • convolutions,

  • n-body interactions,

  • PDE solvers, such as finite element, finite difference, and Fast-Multipole-type computations.

It is not (and does not want to be) a general-purpose programming language.

Loopy is licensed under the liberal MIT license and free for commercial, academic, and private use. All of Loopy’s dependencies can be automatically installed from the package index after using:

pip install loopy

In addition, Loopy is compatible with and enhances pyopencl.

Places on the web related to Loopy:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

loopy-2025.2.tar.gz (624.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

loopy-2025.2-py3-none-any.whl (552.4 kB view details)

Uploaded Python 3

File details

Details for the file loopy-2025.2.tar.gz.

File metadata

  • Download URL: loopy-2025.2.tar.gz
  • Upload date:
  • Size: 624.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for loopy-2025.2.tar.gz
Algorithm Hash digest
SHA256 4bbeebf3a9e37a589a92ac4434d9e60d1382529ff2d4a07a209b1ff51fdd9830
MD5 b74f08cc09ebce9bb6c5c8bd62dbd296
BLAKE2b-256 05ed1b455d2fa2fd2c014f3533ca7b8bcbb387cc0679f2d145ac1666e4d40a3a

See more details on using hashes here.

File details

Details for the file loopy-2025.2-py3-none-any.whl.

File metadata

  • Download URL: loopy-2025.2-py3-none-any.whl
  • Upload date:
  • Size: 552.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for loopy-2025.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3a337be5ae09c56df5a7d09f24df20fa780c2e6daa25deb5d18f317cbdd54033
MD5 17baab9a14248232152db687fbd7ca9c
BLAKE2b-256 d0efd2686194757335314db5c0b1d708902baac9d6e275479121a720fc5af3a9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page