freshcrate
Skin:/

loopy

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

Why this rank:Strong adoptionHealthy release cadenceRelease freshness

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
v2025.1## What's Changed * c_execution: remove unused source_suffix argument to GCCToolchain by @alexfikl in https://github.com/inducer/loopy/pull/830 * Update compyte to d4549d4c711513e2cc098d3f5d4e918eac53ee7a by @inducer in https://github.com/inducer/loopy/pull/831 * Bump Github actions versions by @inducer in https://github.com/inducer/loopy/pull/833 * ci: add dependabot updates for github actions by @alexfikl in https://github.com/inducer/loopy/pull/834 * Fix some annotations in loopy.target Low4/2/2025
v2024.1Release v2024.1Low2/16/2024

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-06-06
dopEffectCSharp🚀 Maximize your C# productivity with advanced techniques in strings, LINQ, and clean code, inspired by the book "Produtivo com C#."master@2026-06-06
COREA thing that uses AI to write perfect applications. For those who want to know how: a governance runtime enforcing immutable constitutional rules on AI coding agents.v2.6.0
antonMost advanced AI coworkerv2.26.5.29.4
BESSERA Python-based low-modeling low-code open-source platform for smart and AI-enhanced softwarev7.8.1

More in Uncategorized

llama.cppLLM inference in C/C++
modal-clientSDK libraries for Modal
anolisaANOLISA - Agentic Nexus Operating Layer & Interface System Architecture