Skip to content

Commit

Permalink
Install patch in the docker (#60)
Browse files Browse the repository at this point in the history
Summary:
Now we have to patch third-party submodules like hstu and xformers, install the patch utility to the CI docker.

Pull Request resolved: #60

Test Plan:
CI

https://github.com/pytorch-labs/tritonbench/actions/runs/11946317137

Reviewed By: FindHao

Differential Revision: D66273502

Pulled By: xuzhao9

fbshipit-source-id: 78552c53b7d0de008081c4fc94851308bff4350a
  • Loading branch information
xuzhao9 authored and facebook-github-bot committed Nov 21, 2024
1 parent 5bff99e commit bde7986
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
7 changes: 0 additions & 7 deletions .ci/tritonbench/test-gpu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,4 @@ fi

. "${SETUP_SCRIPT}"

# FIXME: patch and install hstu
sudo apt-get install -y patch
python install.py --hstu

# FIXME: install colfax
python install.py --colfax

python -m unittest test.test_gpu.main -v
2 changes: 1 addition & 1 deletion docker/tritonbench-nightly.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ RUN cd /workspace/tritonbench && \

# Tritonbench library build and test require libcuda.so.1
# which is from NVIDIA driver
RUN sudo apt update && sudo apt-get install -y libnvidia-compute-550 patchelf
RUN sudo apt update && sudo apt-get install -y libnvidia-compute-550 patchelf patch

# Install Tritonbench
RUN cd /workspace/tritonbench && \
Expand Down
6 changes: 6 additions & 0 deletions tools/cuda_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ def install_torch_deps(cuda_version: str):
]
cmd = ["conda", "install", "-y"] + torch_deps
subprocess.check_call(cmd)
# conda forge deps
# ubuntu 22.04 comes with libstdcxx6 12.3.0
# we need to install the same library version in conda
conda_deps = ["libstdcxx-ng=12.3.0"]
cmd = ["conda", "install", "-y", "-c", "conda-forge"] + conda_deps
subprocess.check_call(cmd)


def install_torch_build_deps(cuda_version: str):
Expand Down

0 comments on commit bde7986

Please sign in to comment.