Skip to main content

Auto-Tuning Framework (ATF) is a generic, general-purpose auto-tuning approach for programs whose tuning parameters may be constrained

Project description

pyATF: The Auto-Tuning Framework (ATF) in Python

Auto-Tuning Framework (ATF) is a generic, general-purpose auto-tuning approach that automatically finds well-performing values of performance-critical parameters (a.k.a. tuning parameters), such as sizes of tiles and numbers of threads. ATF works for programs written in arbitrary programming languages and belonging to arbitrary application domains, and it allows tuning for arbitrary objectives (e.g., high runtime performance and/or low energy consumption).

A major feature of ATF is that it supports auto-tuning programs whose tuning parameters have interdependencies among them, e.g., the value of one tuning parameter has to be smaller than the value of another tuning parameter. For this, ATF introduces novel process to generating, storing, and exploring the search spaces of interdependent tuning parameters (discussed in detail here).

ATF comes with easy-to-use user interfaces to make auto-tuning appealing also to common application developers. The Interfaces are based on either:

  1. Domain-Specific Language (DSL), for auto-tuning at compile time (a.k.a. offline tuning) (discussed here);
  2. General Purpose Language (GPL), for auto-tuning at runtime (a.k.a. online tuning), e.g., of C++ programs (referred to as cppATF, and discussed here) or Python programs (referred to as pyATF).

The full GitHub repository for pyATF, i.e., ATF with its GPL-based Python interface can be found here.

Documentation

The full documentation is available here.

Installation

pyATF requires Python 3.9+ and can be installed using pip:

pip install pyatf

pyATF's pre-implemented OpenCL and CUDA cost functions require additional packages to be installed:

  • OpenCL cost function:

    pip install numpy pyopencl
    

    For the OpenCL cost function, a matching OpenCL runtime is also required, e.g., for Intel CPUs:

    pip install intel-opencl-rt
    
  • CUDA cost function:

    pip install numpy cuda-python
    

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

pyatf-0.0.12.tar.gz (46.5 kB view details)

Uploaded Source

Built Distribution

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

pyatf-0.0.12-py3-none-any.whl (40.1 kB view details)

Uploaded Python 3

File details

Details for the file pyatf-0.0.12.tar.gz.

File metadata

  • Download URL: pyatf-0.0.12.tar.gz
  • Upload date:
  • Size: 46.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyatf-0.0.12.tar.gz
Algorithm Hash digest
SHA256 5b7662cfc8673354d1e1c5f5a9983e7b61d9b21f608c145c0e3b8ba3c4ff0a18
MD5 43ee25019c16fafce56932800fa2e1e9
BLAKE2b-256 b81409c0b3e6cc5109ebfb15322c8570c87ebfe5d62a5dcb110ae168f8689318

See more details on using hashes here.

File details

Details for the file pyatf-0.0.12-py3-none-any.whl.

File metadata

  • Download URL: pyatf-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 40.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyatf-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 d27069a05cb8fd81347919dc92e3697cc1689ae50d35a7292e3238f26f9ee153
MD5 603f3ad298d27e0c6e22a80a37afade0
BLAKE2b-256 d02dc6f23d5c31f1e00f8cf7e72b013edd5982174ec6b78fc311c9eab8b8ed2c

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