Skip to content

Install patch in the docker #60

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .ci/tritonbench/install-triton-main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,17 @@ conda activate "${CONDA_ENV}"
cd /workspace
git clone https://github.com/triton-lang/triton.git
cd /workspace/triton
# delete the original triton directory
TRITON_PKG_DIR=$(python -c "import triton; import os; print(os.path.dirname(triton.__file__))")
# make sure all pytorch triton has been uninstalled
pip uninstall -y triton
pip uninstall -y triton
pip uninstall -y triton
rm -rf "${TRITON_PKG_DIR}"

# install main triton
pip install ninja cmake wheel pybind11; # build-time dependencies
pip install -e python

# test main branch installation with importing experimental descriptor
python -c "import triton.tools.experimental_descriptor"
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
Loading