Skip to content

Commit b627f56

Browse files
authored
Fix CUDA wheel name retrieval (#392)
1 parent b1504ff commit b627f56

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/docs.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ jobs:
6565
run: |
6666
cuda_version_without_periods=$(echo "${{ matrix.cuda-version }}" | sed 's/\.//g')
6767
echo cuda_version_without_periods=${cuda_version_without_periods} >> $GITHUB_ENV
68+
python_version_without_periods=$(echo "${{ matrix.python-version }}" | sed 's/\.//g')
69+
echo python_version_without_periods=${python_version_without_periods} >> $GITHUB_ENV
6870
- uses: actions/download-artifact@v3
6971
with:
7072
name: pytorch_torchcodec__${{ matrix.python-version }}_cu${{ env.cuda_version_without_periods }}_x86_64
@@ -95,7 +97,7 @@ jobs:
9597
${CONDA_RUN} python -c 'import torch; print(f"{torch.__version__}"); print(f"{torch.__file__}"); print(f"{torch.cuda.is_available()=}")'
9698
- name: Install torchcodec from the wheel
9799
run: |
98-
wheel_path=`find pytorch/torchcodec/dist -type f -name "*.whl"`
100+
wheel_path=`find pytorch/torchcodec/dist -type f -name "*cu${{ env.cuda_version_without_periods }}-cp${{ env.python_version_without_periods }}*.whl"`
99101
echo Installing $wheel_path
100102
${CONDA_RUN} python -m pip install $wheel_path -vvv
101103

.github/workflows/linux_cuda_wheel.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ jobs:
7777
run: |
7878
cuda_version_without_periods=$(echo "${{ matrix.cuda-version }}" | sed 's/\.//g')
7979
echo cuda_version_without_periods=${cuda_version_without_periods} >> $GITHUB_ENV
80+
python_version_without_periods=$(echo "${{ matrix.python-version }}" | sed 's/\.//g')
81+
echo python_version_without_periods=${python_version_without_periods} >> $GITHUB_ENV
8082
- uses: actions/download-artifact@v3
8183
with:
8284
name: pytorch_torchcodec__${{ matrix.python-version }}_cu${{ env.cuda_version_without_periods }}_x86_64
@@ -107,7 +109,7 @@ jobs:
107109
${CONDA_RUN} python -c 'import torch; print(f"{torch.__version__}"); print(f"{torch.__file__}"); print(f"{torch.cuda.is_available()=}")'
108110
- name: Install torchcodec from the wheel
109111
run: |
110-
wheel_path=`find pytorch/torchcodec/dist -type f -name "*.whl"`
112+
wheel_path=`find pytorch/torchcodec/dist -type f -name "*cu${{ env.cuda_version_without_periods }}-cp${{ env.python_version_without_periods }}*.whl"`
111113
echo Installing $wheel_path
112114
${CONDA_RUN} python -m pip install $wheel_path -vvv
113115

0 commit comments

Comments
 (0)