Skip to content

torchcodec-xpu: update dependencies to torchcodec 0.13.0#56

Merged
dvrogozh merged 2 commits into
intel:mainfrom
dvrogozh:ci
May 22, 2026
Merged

torchcodec-xpu: update dependencies to torchcodec 0.13.0#56
dvrogozh merged 2 commits into
intel:mainfrom
dvrogozh:ci

Conversation

@dvrogozh

@dvrogozh dvrogozh commented May 20, 2026

Copy link
Copy Markdown
Contributor

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.

@dvrogozh

Copy link
Copy Markdown
Contributor Author

CI fails with:

/__w/_temp/e1c2b0fa-c10c-4677-9d30-7a61e2b0c92e.sh: line 1: /opt/intel/oneapi/2025.3/oneapi-vars.sh: No such file or directory

This means that upstream pytorch migrated to oneAPI 2026.0. We need to update:

source /opt/intel/oneapi/2025.3/oneapi-vars.sh

@dvrogozh

Copy link
Copy Markdown
Contributor Author

CI fails with <...>

Fixed in:

dvrogozh added 2 commits May 21, 2026 21:23
Fixes: intel#55
Signed-off-by: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>
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>
@dvrogozh dvrogozh changed the title ci: limit workflow execution to main and release branches torchcodec-xpu: update dependencies to torchcodec 0.13.0 May 22, 2026

@luis-real luis-real left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dvrogozh dvrogozh merged commit 4ccb329 into intel:main May 22, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants