@@ -82,20 +82,25 @@ jobs:
82
82
name : pytorch_torchcodec__3.9_cu${{ env.cuda_version_without_periods }}_x86_64
83
83
path : pytorch/torchcodec/dist/
84
84
- name : Setup miniconda using test-infra
85
- uses : pytorch /test-infra/.github/actions/setup-miniconda@main
85
+ uses : ahmadsharif1 /test-infra/.github/actions/setup-miniconda@cbdb2bb4b0206cf85e042b40606c8e6017d7b7c7
86
86
with :
87
87
python-version : ${{ matrix.python-version }}
88
- default-packages : " conda-forge::ffmpeg=${{ matrix.ffmpeg-version-for-tests }}"
88
+ #
89
+ # For some reason nvidia::libnpp=12.4 doesn't install but nvidia/label/cuda-12.4.0::libnpp does.
90
+ # So we use the latter convention for libnpp.
91
+ # We install conda packages at the start because otherwise conda may have conflicts with dependencies.
92
+ default-packages : " nvidia/label/cuda-${{ matrix.cuda-version }}.0::libnpp nvidia::cuda-nvrtc=${{ matrix.cuda-version }} nvidia::cuda-toolkit=${{ matrix.cuda-version }} nvidia::cuda-cudart=${{ matrix.cuda-version }} nvidia::cuda-driver-dev=${{ matrix.cuda-version }} conda-forge::ffmpeg=${{ matrix.ffmpeg-version-for-tests }}"
89
93
- name : Check env
90
94
run : |
91
95
${CONDA_RUN} env
92
96
${CONDA_RUN} conda info
93
97
${CONDA_RUN} nvidia-smi
98
+ ${CONDA_RUN} conda list
94
99
- name : Update pip
95
100
run : ${CONDA_RUN} python -m pip install --upgrade pip
96
101
- name : Install PyTorch
97
102
run : |
98
- ${CONDA_RUN} python -m pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu${{ env.cuda_version_without_periods }}
103
+ ${CONDA_RUN} python -m pip install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cu${{ env.cuda_version_without_periods }}
99
104
${CONDA_RUN} python -c 'import torch; print(f"{torch.__version__}"); print(f"{torch.__file__}"); print(f"{torch.cuda.is_available()=}")'
100
105
- name : Install torchcodec from the wheel
101
106
run : |
@@ -106,14 +111,8 @@ jobs:
106
111
- name : Check out repo
107
112
uses : actions/checkout@v3
108
113
109
- - name : Install cuda runtime dependencies
110
- run : |
111
- # For some reason nvidia::libnpp=12.4 doesn't install but nvidia/label/cuda-12.4.0::libnpp does.
112
- # So we use the latter convention for libnpp.
113
- ${CONDA_RUN} conda install --yes nvidia/label/cuda-${{ matrix.cuda-version }}.0::libnpp nvidia::cuda-nvrtc=${{ matrix.cuda-version }} nvidia::cuda-toolkit=${{ matrix.cuda-version }} nvidia::cuda-cudart=${{ matrix.cuda-version }} nvidia::cuda-driver-dev=${{ matrix.cuda-version }}
114
114
- name : Install test dependencies
115
115
run : |
116
- ${CONDA_RUN} python -m pip install --pre torchvision --index-url https://download.pytorch.org/whl/nightly/cpu
117
116
# Ideally we would find a way to get those dependencies from pyproject.toml
118
117
${CONDA_RUN} python -m pip install numpy pytest pillow
119
118
0 commit comments