@@ -25,12 +25,12 @@ defaults:
2525
2626jobs :
2727 generate-matrix :
28- uses : pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
28+ uses : pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.6-torchcodec
2929 with :
3030 package-type : wheel
3131 os : linux
3232 test-infra-repository : pytorch/test-infra
33- test-infra-ref : main
33+ test-infra-ref : release/2.6-torchcodec
3434 with-cpu : disable
3535 with-xpu : disable
3636 with-rocm : disable
@@ -41,12 +41,12 @@ jobs:
4141 strategy :
4242 fail-fast : false
4343 name : Build and Upload wheel
44- uses : pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main
44+ uses : pytorch/test-infra/.github/workflows/build_wheels_linux.yml@release/2.6-torchcodec
4545 with :
4646 repository : pytorch/torchcodec
4747 ref : " "
4848 test-infra-repository : pytorch/test-infra
49- test-infra-ref : main
49+ test-infra-ref : release/2.6-torchcodec
5050 build-matrix : ${{ needs.generate-matrix.outputs.matrix }}
5151 post-script : packaging/post_build_script.sh
5252 smoke-test-script : packaging/fake_smoke_test.py
@@ -65,11 +65,10 @@ jobs:
6565 # PR.
6666 # For the actual release we should add that label and change this to
6767 # include more python versions.
68- python-version : ['3.9']
69- cuda-version : ['11.8', '12.6 ', '12.8 ']
68+ python-version : ['3.9', '3.10', '3.11', '3.12', '3.13' ]
69+ cuda-version : ['11.8', '12.4 ', '12.6 ']
7070 # TODO: put back ffmpeg 5 https://github.com/pytorch/torchcodec/issues/325
71- ffmpeg-version-for-tests : ['4.4.2', '6', '7']
72-
71+ ffmpeg-version-for-tests : ['5', '6', '7']
7372 container :
7473 image : " pytorch/manylinux2_28-builder:cuda${{ matrix.cuda-version }}"
7574 options : " --gpus all -e NVIDIA_DRIVER_CAPABILITIES=video,compute,utility"
8988 uses : pytorch/test-infra/.github/actions/setup-miniconda@main
9089 with :
9190 python-version : ${{ matrix.python-version }}
91+ #
92+ # For some reason nvidia::libnpp=12.4 doesn't install but nvidia/label/cuda-12.4.0::libnpp does.
93+ # So we use the latter convention for libnpp.
9294 # We install conda packages at the start because otherwise conda may have conflicts with dependencies.
9395 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 }}"
9496 - name : Check env
@@ -104,7 +106,7 @@ jobs:
104106 run : ${CONDA_RUN} python -m pip install --upgrade pip
105107 - name : Install PyTorch
106108 run : |
107- ${CONDA_RUN} python -m pip install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly /cu${{ env.cuda_version_without_periods }}
109+ ${CONDA_RUN} python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cu${{ env.cuda_version_without_periods }}
108110 ${CONDA_RUN} python -c 'import torch; print(f"{torch.__version__}"); print(f"{torch.__file__}"); print(f"{torch.cuda.is_available()=}")'
109111 - name : Install torchcodec from the wheel
110112 run : |
@@ -139,7 +141,7 @@ jobs:
139141 ${CONDA_RUN} python test/decoders/manual_smoke_test.py
140142 - name : Run Python tests
141143 run : |
142- ${CONDA_RUN} FAIL_WITHOUT_CUDA=1 pytest test -v --tb=short
144+ ${CONDA_RUN} FAIL_WITHOUT_CUDA=1 pytest test -vvv
143145 - name : Run Python benchmark
144146 run : |
145147 ${CONDA_RUN} time python benchmarks/decoders/gpu_benchmark.py --devices=cuda:0,cpu --resize_devices=none
0 commit comments