Skip to content

Commit

Permalink
Fix the docker build file
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzhao9 committed Nov 5, 2024
1 parent 4cd607b commit 92be7af
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docker/tritonbench-nightly.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ RUN git clone --recurse-submodules -b "${TRITONBENCH_BRANCH}" --single-branch \
# Setup conda env and CUDA
RUN cd /workspace/tritonbench && \
. ${SETUP_SCRIPT} && \
python ./utils/python_utils.py --create-conda-env ${CONDA_ENV} && \
python tools/python_utils.py --create-conda-env ${CONDA_ENV} && \
echo "if [ -z \${CONDA_ENV} ]; then export CONDA_ENV=${CONDA_ENV}; fi" >> /workspace/setup_instance.sh && \
echo "conda activate \${CONDA_ENV}" >> /workspace/setup_instance.sh

RUN cd /workspace/tritonbench && \
. ${SETUP_SCRIPT} && \
sudo python ./utils/cuda_utils.py --setup-cuda-softlink
sudo python tools/cuda_utils.py --setup-cuda-softlink

# Install PyTorch nightly and verify the date is correct
RUN cd /workspace/tritonbench && \
. ${SETUP_SCRIPT} && \
python utils/cuda_utils.py --install-torch-deps && \
python utils/cuda_utils.py --install-torch-nightly
python tools/cuda_utils.py --install-torch-deps && \
python tools/cuda_utils.py --install-torch-nightly

# Check the installed version of nightly if needed
RUN cd /workspace/tritonbench && \
Expand All @@ -37,9 +37,9 @@ RUN cd /workspace/tritonbench && \
echo "torch version check skipped"; \
elif [ -z "${FORCE_DATE}" ]; then \
FORCE_DATE=$(date '+%Y%m%d') \
python utils/cuda_utils.py --check-torch-nightly-version --force-date "${FORCE_DATE}"; \
python tools/cuda_utils.py --check-torch-nightly-version --force-date "${FORCE_DATE}"; \
else \
python utils/cuda_utils.py --check-torch-nightly-version --force-date "${FORCE_DATE}"; \
python tools/cuda_utils.py --check-torch-nightly-version --force-date "${FORCE_DATE}"; \
fi

# Tritonbench library build and test require libcuda.so.1
Expand Down

0 comments on commit 92be7af

Please sign in to comment.