@@ -158,9 +158,10 @@ jobs:
158
158
eval "$(conda shell.bash hook)"
159
159
printf '%s\n' ${{ toJson(inputs.release-matrix) }} > release_matrix.json
160
160
161
+ CUDA_VERSION_STABLE=$(python3 ../../test-infra/tools/scripts/get_stable_cuda_version.py --channel ${MATRIX_CHANNEL})
161
162
# Special case PyPi installation package. And Install of PyPi package via poetry
162
163
if [[ ${MATRIX_PACKAGE_TYPE} == "manywheel" && \
163
- ${MATRIX_GPU_ARCH_VERSION} == "12.4 " && \
164
+ ${MATRIX_GPU_ARCH_VERSION} == "${CUDA_VERSION_STABLE} " && \
164
165
${MATRIX_CHANNEL} == "release" && \
165
166
${USE_ONLY_DL_PYTORCH_ORG} == "false" ]]; then
166
167
source ../../test-infra/.github/scripts/validate_pipy.sh
@@ -183,15 +184,16 @@ jobs:
183
184
timeout : 180
184
185
script : |
185
186
set -ex
186
- cd .ci/pytorch/
187
187
python3 -m ensurepip --upgrade
188
+ CUDA_VERSION=$(python3 ../../test-infra/tools/scripts/get_stable_cuda_version.py --channel ${{ inputs.channel }})
189
+ CUDA_VERSION_NODOT=$(echo $CUDA_VERSION | tr -d '.')
188
190
189
- DWN_PYTORCH_ORG="https://download.pytorch.org/whl/nightly/cu124 "
191
+ DWN_PYTORCH_ORG="https://download.pytorch.org/whl/nightly/cu${CUDA_VERSION_NODOT} "
190
192
if [[ ${{ inputs.channel }} == 'test' ]]; then
191
- DWN_PYTORCH_ORG="https://download.pytorch.org/whl/test/cu124 "
193
+ DWN_PYTORCH_ORG="https://download.pytorch.org/whl/test/cu${CUDA_VERSION_NODOT} "
192
194
elif [[ ${{ inputs.channel }} == 'release' ]]; then
193
- DWN_PYTORCH_ORG="https://download.pytorch.org/whl/cu124 "
195
+ DWN_PYTORCH_ORG="https://download.pytorch.org/whl/cu${CUDA_VERSION_NODOT} "
194
196
fi
195
197
196
198
python3 -m pip install torch --index-url ${DWN_PYTORCH_ORG}
197
- python3 -c "import torch"
199
+ python3 .ci/pytorch/smoke_test/smoke_test.py --package torchonly
0 commit comments