Skip to content

Commit ebda004

Browse files
committed
Fix build script
1 parent 59ffcca commit ebda004

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docker/tritonbench-nightly.dockerfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ RUN cd /workspace/tritonbench && \
2222

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

2727
# Install PyTorch nightly and verify the date is correct
2828
RUN cd /workspace/tritonbench && \
2929
. ${SETUP_SCRIPT} && \
30-
python tools/cuda_utils.py --install-torch-deps && \
31-
python tools/cuda_utils.py --install-torch-nightly
30+
python -m tools.cuda_utils --install-torch-deps && \
31+
python -m tools.cuda_utils --install-torch-nightly
3232

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

4545
# Tritonbench library build and test require libcuda.so.1

docker/tritonbench-rocm-nightly.dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ RUN cd /workspace/tritonbench && \
3535
# Install PyTorch nightly and verify the date is correct
3636
RUN cd /workspace/tritonbench && \
3737
. ${SETUP_SCRIPT} && \
38-
python tools/rocm_utils.py --install-torch-deps && \
39-
python tools/rocm_utils.py --install-torch-nightly
38+
python -m tools.rocm_utils --install-torch-deps && \
39+
python -m tools.rocm_utils --install-torch-nightly
4040

4141

4242
# Install Tritonbench

0 commit comments

Comments
 (0)