Skip to content

Commit bfb6855

Browse files
committed
torchcodec-xpu: update dependencies to torchcodec 0.13.0
PyTorch XPU builds of the same major version series (2.x) might be done with different major versions of oneAPI toolchain which makes them incompatible with each other. For example, torch 2.12 is built with 2025.3.x and 2.13 with 2026.0. This means that we can't set dependency from torch as >=2.12. The best we can do is to pin dependency to specific torch version, i.e. `torch~=2.12.0`. Torchcodec is not yet stable enough to guarantee forward compatibility. Besides that we reuse torchcodec test system with some patching. This trick requires alignment between torchcodec we install for validation and torchcodec we use for testing. Thus, we also need to pin specific torchcodec version, i.e. `torchcodec~=0.13.0`. Signed-off-by: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>
1 parent 02f349a commit bfb6855

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
- name: 'Test installing wheels'
125125
run: |
126126
uv venv
127-
uv pip install torch~=2.12.0 \
127+
uv pip install \
128128
_wheels/${{ env.WHEELS }}-${{ env.PR_OR_SHA }}-${{ env.UNIQUE_ID }}/*.whl \
129129
--index https://download.pytorch.org/whl/xpu -vv
130130
- name: 'Test importing torchcodec-xpu with ffmpeg n6'
@@ -244,7 +244,7 @@ jobs:
244244
uses: actions/checkout@v6
245245
with:
246246
repository: meta-pytorch/torchcodec
247-
ref: v0.12.0
247+
ref: v0.13.0
248248
path: torchcodec
249249
- name: 'Setup Conda'
250250
uses: conda-incubator/setup-miniconda@v4
@@ -277,7 +277,7 @@ jobs:
277277
- name: 'Install torchcodec'
278278
run: |
279279
find _wheels/ -name "*.whl"
280-
pip install torch~=2.12.0 \
280+
pip install \
281281
"$(ls ./_wheels/${{ env.WHEELS }}-${{ env.PR_OR_SHA }}-${{ env.UNIQUE_ID }}/torchcodec*.whl)[test]" \
282282
--extra-index-url https://download.pytorch.org/whl/xpu
283283
- name: 'Test gpu'

packages/torchcodec-xpu/pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
requires = [
33
"pybind11",
44
"scikit-build-core>=0.10",
5-
"torch>=2.11", # WA: must be specified in root project with build-constraint-dependencies
6-
"torchcodec>=0.12"
5+
"torch~=2.12.0", # WA: must be specified in root project with build-constraint-dependencies
6+
"torchcodec~=0.13.0"
77
]
88
build-backend = "scikit_build_core.build"
99

@@ -18,7 +18,8 @@ authors = [
1818
]
1919
dynamic = ["version"]
2020
dependencies = [
21-
"torchcodec>=0.12"
21+
"torch~=2.12.0",
22+
"torchcodec~=0.13.0"
2223
]
2324

2425
[project.urls]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.12.0
1+
0.13.0

0 commit comments

Comments
 (0)