freshcrate

Description

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

README

Loopy: Transformation-Based Generation of High-Performance CPU/GPU Code

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:

Release History

VersionChangesUrgencyDate
v2025.2## What's Changed * List concat -> iterable unpack (ruff 0.11.4) by @inducer in https://github.com/inducer/loopy/pull/933 * Bump astral-sh/setup-uv from 5 to 6 by @dependabot[bot] in https://github.com/inducer/loopy/pull/934 * feat: replace use of deprecated logger.warn by @emmanuel-ferdman in https://github.com/inducer/loopy/pull/935 * Bpr by @inducer in https://github.com/inducer/loopy/pull/936 * Isl typing by @inducer in https://github.com/inducer/loopy/pull/937 * Better types in codegeLow7/30/2025

Dependencies & License Audit

Loading dependencies...

Similar Packages

ai-dataset-generator🤖 Generate tailored AI training datasets quickly and easily, transforming your domain knowledge into essential training data for model fine-tuning.main@2026-04-21
dopEffectCSharp🚀 Maximize your C# productivity with advanced techniques in strings, LINQ, and clean code, inspired by the book "Produtivo com C#."master@2026-04-21
antonMost advanced AI coworkerv2.0.2
geon-decoderGEON: Structure-first decoding via equivalence classes and field closuremain@2026-04-11
cyber-pilotCyber Pilot is a traceable delivery system for requirements, design, plans, and code.v3.7.0-beta