Skip to content

Commit

Permalink
Fix build script
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzhao9 committed Nov 21, 2024
1 parent c9ee096 commit 2313529
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions docker/tritonbench-nightly.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ RUN cd /workspace/tritonbench && \

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

# Install PyTorch nightly and verify the date is correct
RUN cd /workspace/tritonbench && \
. ${SETUP_SCRIPT} && \
python tools/cuda_utils.py --install-torch-deps && \
python tools/cuda_utils.py --install-torch-nightly
python -m tools.cuda_utils --install-torch-deps && \
python -m tools.cuda_utils --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 tools/cuda_utils.py --check-torch-nightly-version --force-date "${FORCE_DATE}"; \
python -m tools.cuda_utils --check-torch-nightly-version --force-date "${FORCE_DATE}"; \
else \
python tools/cuda_utils.py --check-torch-nightly-version --force-date "${FORCE_DATE}"; \
python -m tools.cuda_utils --check-torch-nightly-version --force-date "${FORCE_DATE}"; \
fi

# Tritonbench library build and test require libcuda.so.1
Expand Down
4 changes: 2 additions & 2 deletions docker/tritonbench-rocm-nightly.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ RUN cd /workspace/tritonbench && \
# Install PyTorch nightly and verify the date is correct
RUN cd /workspace/tritonbench && \
. ${SETUP_SCRIPT} && \
python tools/rocm_utils.py --install-torch-deps && \
python tools/rocm_utils.py --install-torch-nightly
python -m tools.rocm_utils --install-torch-deps && \
python -m tools.rocm_utils --install-torch-nightly


# Install Tritonbench
Expand Down

0 comments on commit 2313529

Please sign in to comment.