Aidge Setup and Installation#

System Requirements#

  • Python >= 3.10

Additional requirements vary by module. Refer to each module’s documentation for details.

Installation#

Aidge is built on a core library that interfaces with multiple modules, each binded to Python libraries. Each module must be installed independently, aidge_core included.

Tip

We recommend creating a Python environment to work with Aidge:

# Using the virtualenv package, for example:
virtualenv -p python3.10 py_env_aidge

2. Build from source#

System Requirements

  • CMake >= 3.18

  • Git

Build on Linux & macOS#

  1. Create and activate your virtual environment:

virtualenv -p python3.10 py_env_aidge
source py_env_aidge/bin/activate
  1. Clone the full repository (with submodules), and move to its root directory:

git clone --recursive https://gitlab.eclipse.org/eclipse/aidge/aidge.git
cd aidge
  1. Install the package based on your specific requirements:

For Python development:

# Install all modules
./setup.sh --all --release --python

# Alternatively, install only specific modules
./setup.sh -m core -m backend_cpu -m onnx --release --python

For C++ development:

# Install all modules
./setup.sh --all --release

# Alternatively, install only specific modules, in debug or release mode
./setup.sh -m core -m backend_cpu --release
./setup.sh -m core -m backend_cpu --debug --tests

Tip

Run ./setup.sh -h to view all installation options.

Build on Windows#

  1. Create and activate your virtual environment:

virtualenv -p python3.10 py_env_aidge
source py_env_aidge/bin/activate
  1. Clone the full repository (with submodules), and move to its root directory:

git clone --recursive https://gitlab.eclipse.org/eclipse/aidge/aidge.git
cd aidge
  1. Install the package based on your specific requirements:

Python development:

.\setup.ps1 -All -Release -Python
.\setup.ps1 -Modules core,backend_cpu,onnx -Release -Python

C++ development:

.\setup.ps1 -All -Release
.\setup.ps1 -Modules core,backend_cpu,onnx -Debug -Tests

Tip

Run .\ setup.ps1 -h to view all installation options.

Verify installation#

python -c "import aidge_core; import aidge_backend_cpu; print(aidge_core.Tensor.get_available_backends())"

Expected output:

{'cpu'}