Without a CUDA compiler pip install . produces the following error:
Context
"pip install ." produces an error while compiling on a computer without a CUDA compiler.
Compiler requires the CUDA toolkit. Please set the CUDAToolkit_ROOT
variable.
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
Modified files
-
README.md
, CUDA compiler added in dependencies;
Detailed major modifications
- No major modification, only additional info for the user.
TODO
Review README.md
-
NOT DONE -
DONE -
TO DO
Merge request reports
Activity
Hello @farges
Thank you for your contribution! A CUDA compiler can be ignored by setting the env variable:
export AIDGE_WITH_CUDA=OFF
The env variables are not documented which is IMO the real issue here.
Here is a quick attempt to make a table documenting them:
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
orDebug
.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
)The list of these variables is defined in the setup.py
Maybe you can add this table to the README ?
@pineapple @bhalimi If you have comment on this table can you please tell me here and otherwise can you leave a thumbs up so that I hav eyour approbation?
Edited by Cyril Moineauassigned to @farges
requested review from @cmoineau
added Documentation 📖 StatusWork in Progress labels
changed milestone to %aidge v0.6.0
enabled an automatic merge when all merge checks for df718f4d pass
enabled an automatic merge when all merge checks for df718f4d pass
@farges You will have to rebase!
changed milestone to %aidge v0.7.0
added 160 commits
-
df718f4d...00e24ca1 - 157 commits from branch
eclipse/aidge:dev
- 1a5f96c3 - Without a CUDA compiler pip install . produces the following error:
- f2628bca - Trying table in .md file
- dc3cb194 - Adding table and a tip w.r.t. CUDA
Toggle commit list-
df718f4d...00e24ca1 - 157 commits from branch
enabled an automatic merge when all merge checks for dc3cb194 pass