Skip to content
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

Make PyTorch depend on TorchTriton #1213

Merged
merged 1 commit into from
Nov 30, 2022
Merged
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
9 changes: 7 additions & 2 deletions conda/build_pytorch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ retry () {
$* || (sleep 1 && $*) || (sleep 2 && $*) || (sleep 4 && $*) || (sleep 8 && $*)
}

# Parse arguments and determmine version
# Parse arguments and determine version
###########################################################
if [[ -n "$DESIRED_CUDA" && -n "$PYTORCH_BUILD_VERSION" && -n "$PYTORCH_BUILD_NUMBER" ]]; then
desired_cuda="$DESIRED_CUDA"
Expand Down Expand Up @@ -245,7 +245,7 @@ fi
meta_yaml="$build_folder/meta.yaml"
echo "Using conda-build folder $build_folder"

# Switch between CPU or CUDA configerations
# Switch between CPU or CUDA configurations
###########################################################
build_string_suffix="$PYTORCH_BUILD_NUMBER"
if [[ -n "$cpu_only" ]]; then
Expand Down Expand Up @@ -279,6 +279,11 @@ else
echo "unhandled desired_cuda: $desired_cuda"
exit 1
fi
if [[ "$OSTYPE" != "msys" ]]; then
# TODO: Remove me when Triton has a proper release channel
TRITON_SHORTHASH=$(cut -c1-10 $pytorch_rootdir/.github/ci_commit_pins/triton.txt)
export CONDA_CUDATOOLKIT_CONSTRAINT="${CONDA_CUDATOOLKIT_CONSTRAINT}\n - torchtriton==2.0.0+${TRITON_SHORTHASH}"
fi

build_string_suffix="cuda${CUDA_VERSION}_cudnn${CUDNN_VERSION}_${build_string_suffix}"
fi
Expand Down