Skip to content

Commit

Permalink
Cherry-Pick of Add ability to switch channels during conda build #1880 (
Browse files Browse the repository at this point in the history
  • Loading branch information
atalman authored Jun 21, 2024
1 parent 9ef7f76 commit 64e6784
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion conda/build_pytorch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,13 @@ for py_ver in "${DESIRED_PYTHON[@]}"; do
else
local_channel="$(pwd)/$output_folder"
fi
conda install -y -c "file://$local_channel" pytorch==$PYTORCH_BUILD_VERSION -c pytorch -c numba/label/dev -c pytorch-nightly -c nvidia

CONDA_CHANNEL="pytorch-test"
if [[ -n "$OVERRIDE_PACKAGE_VERSION" && "$OVERRIDE_PACKAGE_VERSION" =~ .*dev.* ]]; then
CONDA_CHANNEL="pytorch-nightly"
fi

conda install -y -c "file://$local_channel" pytorch==$PYTORCH_BUILD_VERSION -c pytorch -c numba/label/dev -c $CONDA_CHANNEL -c nvidia

echo "$(date) :: Running tests"
pushd "$pytorch_rootdir"
Expand Down

0 comments on commit 64e6784

Please sign in to comment.