From 1a5f96c3d191a2df1af48a76516b7b8b008d12a4 Mon Sep 17 00:00:00 2001 From: Jean-Loup Farges <farges@onera.fr> Date: Thu, 3 Apr 2025 09:11:48 +0000 Subject: [PATCH 1/3] Without a CUDA compiler pip install . produces the following error: Call Stack (most recent call first): /tmp/pip-build-env-i0mlyz6t/overlay/lib/python3.10/site-packages/cmake/data/share/cmake-4.0/Modules/CMakeDetermineCUDACompiler.cmake:85 (cmake_cuda_find_toolkit) CMakeLists.txt:77 (enable_language) -- Configuring incomplete, errors occurred! error: command '/tmp/pip-build-env-i0mlyz6t/overlay/bin/cmake' failed with exit code 1 --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f62b116..777ee12 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ Its implementation does support multiple branch architectures. - `Make`/`Ninja` - `CMake` - `Python` (optional, if you have no intend to use this library in python with pybind) +- `CUDA compiler` #### Aidge dependencies - `aidge_core` -- GitLab From f2628bcaca4d10743b560bddb0a64070b877cdec Mon Sep 17 00:00:00 2001 From: Jean-Loup Farges <farges@onera.fr> Date: Tue, 8 Apr 2025 09:45:02 +0000 Subject: [PATCH 2/3] Trying table in .md file --- README.md | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 777ee12..950a004 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,6 @@ Its implementation does support multiple branch architectures. - `Make`/`Ninja` - `CMake` - `Python` (optional, if you have no intend to use this library in python with pybind) -- `CUDA compiler` #### Aidge dependencies - `aidge_core` @@ -20,6 +19,47 @@ The requirements for installing the library are the followings: - The AIDGE modules aidge_core, aidge_onnx and aidge_backend_cpu - Python (> 3.7) if you intend to use the pybind wrapper +#### Configuration of environment variables + +| Variable | Default value | Description | +| :------------ |:------------------------------:| ----------------------------------------------------------------------------:| +| AIDGE_INSTALL | <path to env> / lib / libAidge |Path to the installation folder of Aidge, must be the same used for all aidge | dependencies + + +AIDGE_C_COMPILER +gcc +C Compiler to use + + +AIDGE_CXX_COMPILER +g++ +CXX Compiler to use + + +AIDGE_BUILD_TYPE +Release +Can either be Release or Debug. + + +AIDGE_ASAN +OFF +Compile with ASAN for debug. + + +AIDGE_WITH_CUDA +ON +Compile CUDA kernel for quantization, requires nvcc and aidge_bakcend_cuda. + + +AIDGE_CMAKE_ARCH +"" +Append architecture-specific arguments if provided. + + +AIDGE_BUILD_GEN +"" +To specify a CMake generator (for example Ninja) + ### Pip installation ``` bash pip install . -v -- GitLab From dc3cb194dd45a277935c17fa72e205c7ce323e35 Mon Sep 17 00:00:00 2001 From: Jean-Loup Farges <farges@onera.fr> Date: Tue, 8 Apr 2025 09:55:58 +0000 Subject: [PATCH 3/3] Adding table and a tip w.r.t. CUDA --- README.md | 51 ++++++++++++--------------------------------------- 1 file changed, 12 insertions(+), 39 deletions(-) diff --git a/README.md b/README.md index 950a004..53c5b3e 100644 --- a/README.md +++ b/README.md @@ -21,44 +21,16 @@ The requirements for installing the library are the followings: #### Configuration of environment variables -| Variable | Default value | Description | -| :------------ |:------------------------------:| ----------------------------------------------------------------------------:| -| AIDGE_INSTALL | <path to env> / lib / libAidge |Path to the installation folder of Aidge, must be the same used for all aidge | dependencies - - -AIDGE_C_COMPILER -gcc -C Compiler to use - - -AIDGE_CXX_COMPILER -g++ -CXX Compiler to use - - -AIDGE_BUILD_TYPE -Release -Can either be Release or Debug. - - -AIDGE_ASAN -OFF -Compile with ASAN for debug. - - -AIDGE_WITH_CUDA -ON -Compile CUDA kernel for quantization, requires nvcc and aidge_bakcend_cuda. - - -AIDGE_CMAKE_ARCH -"" -Append architecture-specific arguments if provided. - - -AIDGE_BUILD_GEN -"" -To specify a CMake generator (for example Ninja) +| Variable | Default value | Description | +| :----------------- |:------------------------------:| ----------------------------------------------------------------------------:| +| AIDGE_INSTALL | <path to env> / lib / libAidge | Path to the installation folder of Aidge, must be the same used for all aidge dependencies | +| AIDGE_C_COMPILER | gcc | C Compiler to use | +| AIDGE_CXX_COMPILER | g++ | CXX Compiler to use | +| AIDGE_BUILD_TYPE | Release | Can either be Release or Debug | +| AIDGE_ASAN | OFF | Compile with ASAN for debug | +| AIDGE_WITH_CUDA | ON | Compile CUDA kernel for quantization, requires nvcc and aidge_bakcend_cuda | +| AIDGE_CMAKE_ARCH | "" | Append architecture-specific arguments if provided | +| AIDGE_BUILD_GEN | "" | To specify a CMake generator (for example Ninja) | ### Pip installation ``` bash @@ -66,7 +38,8 @@ pip install . -v ``` > **TIPS :** Use environment variables to change compilation options : > - `AIDGE_INSTALL` : to set the installation folder. Defaults to /usr/local/lib. :warning: This path must be identical to aidge_core install path. -> - `AIDGE_PYTHON_BUILD_TYPE` : to set the compilation mode to **Debug** or **Release** +> - `AIDGE_BUILD_TYPE` : to set the compilation mode to **Debug** or **Release** +> - `AIDGE_WITH_CUDA` : if your computer hasn't graphical card, don't forget to set if **OFF** > - `AIDGE_BUILD_GEN` : to set the build backend with ## User guide -- GitLab