Skip to main content

AIT - Accelerator Integration Tool

Project description

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.

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

ait_bsc-8.1.0.tar.gz (803.5 kB view details)

Uploaded Source

Built Distribution

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

ait_bsc-8.1.0-py3-none-any.whl (859.8 kB view details)

Uploaded Python 3

File details

Details for the file ait_bsc-8.1.0.tar.gz.

File metadata

  • Download URL: ait_bsc-8.1.0.tar.gz
  • Upload date:
  • Size: 803.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.5

File hashes

Hashes for ait_bsc-8.1.0.tar.gz
Algorithm Hash digest
SHA256 35e5d09ad50294657cb25a5072f49b6c11ce0690d22b3fac360cc70278187065
MD5 41927d0c86436da15723beee7d524824
BLAKE2b-256 2c49fb6a7e323dd6d66765aef78c724ccc6ace3d566e0a25f691dbe3d379e746

See more details on using hashes here.

File details

Details for the file ait_bsc-8.1.0-py3-none-any.whl.

File metadata

  • Download URL: ait_bsc-8.1.0-py3-none-any.whl
  • Upload date:
  • Size: 859.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.5

File hashes

Hashes for ait_bsc-8.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe4049c75629080d4eeb63df62e2a66dc12d13ee3d90606dc33b65d305cb79b4
MD5 47790424b8a16a50bb755398c9f94eec
BLAKE2b-256 a95288db5315df45d296dd5020097583951914d2e487a9e98c0fc1b2002457ee

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