@@ -14,67 +14,36 @@ defaults:
14
14
shell : bash -l -eo pipefail {0}
15
15
16
16
jobs :
17
- generate-matrix :
18
- uses : pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
19
- with :
20
- package-type : wheel
21
- os : linux
22
- test-infra-repository : pytorch/test-infra
23
- test-infra-ref : main
24
- with-cpu : disable
25
- with-xpu : disable
26
- with-rocm : disable
27
- with-cuda : enable
28
- build-python-only : " disable"
29
- build :
30
- needs : generate-matrix
31
- strategy :
32
- fail-fast : false
33
- name : Build and Upload wheel
34
- uses : pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main
35
- with :
36
- repository : pytorch/audio
37
- ref : " "
38
- test-infra-repository : pytorch/test-infra
39
- test-infra-ref : main
40
- build-matrix : ${{ needs.generate-matrix.outputs.matrix }}
41
- package-name : torchaudio
42
- trigger-event : ${{ github.event_name }}
43
- build-platform : " python-build-package"
44
- build-command : " python -m build --wheel -vvv --no-isolation"
45
-
46
17
build-docs :
47
- runs-on : linux.4xlarge.nvidia.gpu
48
18
strategy :
49
19
fail-fast : false
50
20
matrix :
51
- # 3.10 corresponds to the minimum python version for which we build
52
- # the wheel unless the label cliflow/binaries/all is present in the
53
- # PR.
54
21
python-version : ['3.10']
55
22
cuda-version : ['12.6']
56
- ffmpeg-version-for-tests : ['7']
57
- container :
58
- image : " pytorch/manylinux2_28-builder:cuda${{ matrix.cuda-version }} "
59
- options : " --gpus all -e NVIDIA_DRIVER_CAPABILITIES=video,compute,utility "
60
- needs : build
23
+ ffmpeg-version : ['7']
24
+ runs-on : linux.g5.4xlarge.nvidia.gpu
25
+ env :
26
+ REPOSITORY : pytorch/audio
27
+ REF : " "
61
28
steps :
62
29
- name : Setup env vars
63
30
run : |
64
31
cuda_version_without_periods=$(echo "${{ matrix.cuda-version }}" | sed 's/\.//g')
65
32
echo cuda_version_without_periods=${cuda_version_without_periods} >> $GITHUB_ENV
66
33
python_version_without_periods=$(echo "${{ matrix.python-version }}" | sed 's/\.//g')
67
34
echo python_version_without_periods=${python_version_without_periods} >> $GITHUB_ENV
68
- - uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
69
- with :
70
- name : pytorch_audio__${{ matrix.python-version }}_cu${{ env.cuda_version_without_periods }}_x86_64
71
- path : pytorch/audio/dist/
72
35
- name : Setup miniconda using test-infra
73
36
uses : pytorch/test-infra/.github/actions/setup-miniconda@main
74
37
with :
75
38
python-version : ${{ matrix.python-version }}
76
39
# We install conda packages at the start because otherwise conda may have conflicts with dependencies.
77
- 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 }}"
40
+ 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 }} cmake ninja"
41
+ - uses : pytorch/test-infra/.github/actions/setup-binary-builds@main
42
+ with :
43
+ setup-miniconda : false
44
+ python-version : ${{ matrix.python-version }}
45
+ cuda-version : ${{ matrix.cuda-version }}
46
+ repository : " "
78
47
- name : Check env
79
48
run : |
80
49
${CONDA_RUN} env
@@ -90,15 +59,12 @@ jobs:
90
59
run : |
91
60
${CONDA_RUN} python -m pip install --pre torch torchcodec --index-url https://download.pytorch.org/whl/nightly/cu${{ env.cuda_version_without_periods }}
92
61
${CONDA_RUN} python -c 'import torch; print(f"{torch.__version__}"); print(f"{torch.__file__}"); print(f"{torch.cuda.is_available()=}")'
93
- - name : Install torchaudio from the wheel
94
- run : |
95
- wheel_path=`find pytorch/audio/dist -type f -name "*cu${{ env.cuda_version_without_periods }}-cp${{ env.python_version_without_periods }}*.whl"`
96
- echo Installing $wheel_path
97
- ${CONDA_RUN} python -m pip install $wheel_path -vvv
98
-
99
62
- name : Check out repo
100
63
uses : actions/checkout@v3
101
-
64
+ - name : Install torchaudio
65
+ run : |
66
+ export USE_CUDA=1
67
+ ${CONDA_RUN} python -m pip install . -v --no-build-isolation
102
68
- name : Install doc dependencies
103
69
run : |
104
70
cd docs
110
76
- uses : actions/upload-artifact@v4
111
77
with :
112
78
name : Built-Docs
113
- path : docs/build/html/
79
+ path : docs/build/html/
0 commit comments