File tree Expand file tree Collapse file tree 2 files changed +4
-18
lines changed Expand file tree Collapse file tree 2 files changed +4
-18
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,6 @@ ARG GITHUB_MIRROR=""
2828RUN echo "Using GitHub mirror: $GITHUB_MIRROR"
2929SHELL ["/bin/bash", "-c"]
3030
31- # Clean up the pip constraint file from the base NGC PyTorch image.
32- RUN [ -f /etc/pip/constraint.txt ] && : > /etc/pip/constraint.txt || true
33-
3431FROM base AS devel
3532
3633ARG TRT_VER
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- # Function to assert that all provided variable names are non-empty
4- assert_non_empty () {
5- for var_name in " $@ " ; do
6- local var_value=" ${! var_name} "
7-
8- # Check if the variable is empty or not set
9- if [[ -z " $var_value " ]]; then
10- echo " Error: Variable '$var_name ' is empty or not set" >&2
11- exit 1
12- fi
13- done
14- }
15-
163echo " TRT_VER: $TRT_VER "
174echo " CUDA_VER: $CUDA_VER "
185echo " CUDNN_VER: $CUDNN_VER "
196echo " NCCL_VER: $NCCL_VER "
207echo " CUBLAS_VER: $CUBLAS_VER "
218
22-
23-
249# Default values
2510base=0
2611cmake=0
@@ -101,8 +86,12 @@ export PYTORCH_CUDA_ALLOC_CONF="garbage_collection_threshold:0.99999"
10186
10287if [ $base -eq 1 ]; then
10388 echo " Installing base dependencies..."
89+ # Clean up the pip constraint file from the base NGC PyTorch image.
90+ [ -f /etc/pip/constraint.txt ] && : > /etc/pip/constraint.txt || true
91+
10492 PYTHON_VERSION=" 3.12.3"
10593 echo " Using Python version: $PYTHON_VERSION "
94+
10695 GITHUB_MIRROR=$GITHUB_MIRROR bash ./install_base.sh $PYTHON_VERSION
10796fi
10897
You can’t perform that action at this time.
0 commit comments