Skip to content

fix(cmake): update C++ standard detection for torch >= 2.14 and adjust related configuration - #792

Merged
PabloCarmona merged 5 commits into
masterfrom
fix/torch-cxx20
Sep 21, 2026
Merged

PabloCarmona merged 5 commits into
masterfrom
fix/torch-cxx20

Conversation

@PabloCarmona

Copy link
Copy Markdown
Collaborator

Related issues

ec0d09a

Description

Pytorch change the behaviour of some C++ headers from warning to error causing builds to fail. More info about it can be found here:

Details

After new Pytorch 2.14 release changes over the C++ Standard, we are updating the version to 20 for builds that require Pytorch >= 2.14 to solve errors.
We are making the change compatible also with past pytorch versions <=2.13 and for future ones if the C++ version gets bumped.

…t related configuration

Signed-off-by: Pablo Carmona Gonzalez <pablocarmonagonzalez@gmail.com>
@PabloCarmona PabloCarmona self-assigned this Sep 17, 2026
… configurations to use latest gcc

Signed-off-by: Pablo Carmona Gonzalez <pablocarmonagonzalez@gmail.com>
Merge branch 'master' into fix/torch-cxx20
@PabloCarmona
PabloCarmona merged commit fd9a63a into master Sep 21, 2026
7 checks passed
@PabloCarmona
PabloCarmona deleted the fix/torch-cxx20 branch September 21, 2026 09:02
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