-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Build] Error when trying to build docker image of ONNXRuntime with CUDA support #22945
Comments
@banu-narayana-dnjp could you help to verify if #22946 fixes this issue? |
No, the same error persists even if there is a requirements.txt file. => ERROR [stage-0 5/5] RUN cd /code && python3 -m venv /code/env && . /code/env/bin/activate && pip install --upgrad 3.9s
Dockerfile.cuda:4746 | # Create a virtual environment and install dependencies, then build ONNX Runtime with CUDA support.
|
Describe the issue
While running the script, it expects to find "tools/ci_build/github/linux/docker/inference/x86_64/python/cpu/scripts/requirements.txt". But, there is no such file in that path.
Urgency
No response
Target platform
CUDA
Build script
git submodule update --init
docker build -t onnxruntime-cuda --build-arg CUDA_VERSION=12.6.1
--build-arg CUDNN_VERSION=9.5.0.50
--build-arg GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
--build-arg GIT_COMMIT=$(git rev-parse HEAD)
--build-arg ONNXRUNTIME_VERSION=$(cat ../VERSION_NUMBER)
-f Dockerfile.cuda ..
Error / output
=> ERROR [stage-0 5/5] RUN cd /code && python3 -m venv /code/env && . /code/env/bin/activate && pip ins 3.9s
Dockerfile.cuda:47
46 | # Create a virtual environment and install dependencies, then build ONNX Runtime with CUDA support.
47 | >>> RUN cd /code
48 | >>> && python3 -m venv /code/env
49 | >>> && . /code/env/bin/activate
50 | >>> && pip install --upgrade psutil setuptools wheel packaging
51 | >>> && pip install -r tools/ci_build/github/linux/docker/inference/x86_64/python/cpu/scripts/requirements.txt
52 | >>> # && pip install -r /home/banu_narayana/Documents/onnxruntime/tools/ci_build/github/linux/docker/inference/x86_64/python/cpu/scripts/requirements.txt
53 | >>> && python /code/tools/ci_build/build.py --build_dir /code/build/Linux
54 | >>> --allow_running_as_root --skip_submodule_sync
55 | >>> --use_cuda --cuda_home /usr/local/cuda
56 | >>> --cudnn_home /code/build/cudnn
57 | >>> --build_shared_lib --skip_tests
58 | >>> --config Release --build_wheel --update --build --parallel
59 | >>> --cmake_generator Ninja
60 | >>> --cmake_extra_defines ONNXRUNTIME_VERSION=$(cat ./VERSION_NUMBER) "CMAKE_CUDA_ARCHITECTURES=${CMAKE_CUDA_ARCHITECTURES}" onnxruntime_BUILD_UNIT_TESTS=OFF
61 |
ERROR: failed to solve: process "/bin/sh -c cd /code && python3 -m venv /code/env && . /code/env/bin/activate && pip install --upgrade psutil setuptools wheel packaging && pip install -r tools/ci_build/github/linux/docker/inference/x86_64/python/cpu/scripts/requirements.txt && python /code/tools/ci_build/build.py --build_dir /code/build/Linux --allow_running_as_root --skip_submodule_sync --use_cuda --cuda_home /usr/local/cuda --cudnn_home /code/build/cudnn --build_shared_lib --skip_tests --config Release --build_wheel --update --build --parallel --cmake_generator Ninja --cmake_extra_defines ONNXRUNTIME_VERSION=$(cat ./VERSION_NUMBER) "CMAKE_CUDA_ARCHITECTURES=${CMAKE_CUDA_ARCHITECTURES}" onnxruntime_BUILD_UNIT_TESTS=OFF" did not complete successfully: exit code: 1
Visual Studio Version
No response
GCC / Compiler Version
No response
The text was updated successfully, but these errors were encountered: