Skip to main content

PyPI version License PyPi Downloads Total Downloads Supported Python versions

Accelerator Integration Tool (AIT)

The Accelerator Integration Tool (AIT) automatically integrates OmpSs@FPGA and OmpSs-2@FPGA accelerators into FPGA designs using different vendor backends.

This README should help you install the AIT component of the OmpSs@FPGA toolchain from the repository. However, it is preferred using the pre-built Docker image with the latest stable toolchain. They are available at OmpSs@FPGA pre-built Docker images and OmpSs-2@FPGA pre-built Docker images.

Moreover, there are pre-built SD images for the current supported board families: Zynq7000 and Ultrascale. They are also available at OmpSs@FPGA pre-built SD images and OmpSs-2@FPGA pre-built SD images.

Prerequisites

Git Large File Storage

This repository uses Git Large File Storage to handle relatively-large files that are frequently updated (i.e. hardware runtime IP files) to avoid increasing the history size unnecessarily. You must install it so Git is able to download these files.

Follow instructions on their website to install it.

Vendor backends

Xilinx Vivado

Follow installation instructions for Xilinx Vivado, Vitis HLS and SDK, as well as enable support during setup for the devices you plan to use. However, components can be added or removed afterwards.

Current version supports Vivado 2021.1 onwards.

Installation

Using pip

You can use pip to easily install ait on your system:

python3 -m pip install ait-bsc

Manual installation

  1. Make sure you have the following packages installed on your system

  2. Clone AIT's repository

    • From GitHub:

      git clone https://github.com/bsc-pm-ompss-at-fpga/ait.git
      
    • From our internal GitLab repository (BSC users only):

      git clone https://pm.bsc.es/gitlab/ompss-at-fpga/ait.git
      
  3. Enable Git LFS and install

    cd ait
    git lfs install
    git lfs pull
    export AIT_HOME="/path/to/install/ait"
    export DEB_PYTHON_INSTALL_LAYOUT=deb_system
    python3 -m pip install . -t $AIT_HOME
    
  4. Add the installed binaries to your PATH

    export PATH=$AIT_HOME/bin:$PATH
    export PYTHONPATH=$AIT_HOME:$PYTHONPATH
    

Offline installation

  1. Make sure you have the following packages installed on your system

  2. Copy AIT sources into target machine

  3. Build wheel for AIT and install

    cd ait
    python3 setup.py bdist_wheel
    export AIT_HOME="/path/to/install/ait"
    export DEB_PYTHON_INSTALL_LAYOUT=deb_system
    python3 -m pip install dist/ait_bsc-*.whl --no-index -t $AIT_HOME
    
  4. Add the installed binaries to your PATH

    export PATH=$AIT_HOME/bin:$PATH
    export PYTHONPATH=$AIT_HOME:$PYTHONPATH
    

Tests

Prerequisites

  • python3-flake8
  • python3-unittest

Style testing

The python code follows PEP 8 style guide which is verified using the flake8 tool.

To check the current source code just execute python3 -m flake8.

Unit testing

The test folder contains some unitary tests for python sources.

To run all tests the command python3 -m unittest can be executed in the root directory of the repository.

Metadata

Release files for ait-bsc 8.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ait-bsc 8.1.0
File Size Uploaded
ait_bsc-8.1.0.tar.gz 803.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ait-bsc 8.1.0
File Interpreter ABI Platform
ait_bsc-8.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.7 MB

Release files / ait_bsc-8.1.0.tar.gz

Download URL ait_bsc-8.1.0.tar.gz
Size 803.5 kB
Tags Source
SHA-256 checksum
How to use checksums
35e5d09ad50294657cb25a5072f49b6c11ce0690d22b3fac360cc70278187065
BLAKE2b-256 checksum
How to use checksums
2c49fb6a7e323dd6d66765aef78c724ccc6ace3d566e0a25f691dbe3d379e746
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.5

Release files / ait_bsc-8.1.0-py3-none-any.whl

Download URL ait_bsc-8.1.0-py3-none-any.whl
Size 859.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe4049c75629080d4eeb63df62e2a66dc12d13ee3d90606dc33b65d305cb79b4
BLAKE2b-256 checksum
How to use checksums
a95288db5315df45d296dd5020097583951914d2e487a9e98c0fc1b2002457ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.5

Release history Release notifications | RSS feed

This release

8.1.0 This release

2 release files

7.7.2

2 release files

7.5.5

2 release files

7.3.1

2 release files

6.8.2

2 release files

6.8.0

2 release files

6.5.3

2 release files

6.4.0

2 release files

6.3.1

2 release files

6.3.0

2 release files

6.2.0

2 release files

6.1.0

2 release files

6.0.2

2 release files

6.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page