freshcrate
Skin:/

loopy

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

Why this rank:Strong adoptionHealthy release cadence

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

BESSERA Python-based low-modeling low-code open-source platform for smart and AI-enhanced softwarev7.12.0
uipath-ai-skillsAI skills that turns coding agents into UiPath experts.main@2026-07-17
antonMost advanced AI coworkerv2.26.7.16.1
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.9.1
veraHigh-fidelity, anycloud emulators running in your laptop. For DevOps programming, testing, and simulation.main@2026-07-07

More in Uncategorized

TradingAgents-CN基于多智能体LLM的中文金融交易框架 - TradingAgents中文增强版
RAGENRAGEN leverages reinforcement learning to train LLM reasoning agents in interactive, stochastic environments.
arthur-engineMake AI work for Everyone - Monitoring and governing for your AI/ML
gh-aw-firewallGitHub Agentic Workflows Firewall