From ffcbb7fd6109df6b65e96fe07287255e387f0123 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Sun, 14 Dec 2025 15:44:38 +0000 Subject: [PATCH] Bump PyTorch C standard from 11 to 17 (#170387) Summary: Basically a no-op, but brings PyTorch OSS and internal back into sync. Test Plan: Sandcastle Differential Revision: D87568023 Pull Request resolved: https://github.com/pytorch/pytorch/pull/170387 Approved by: https://github.com/malfet --- CMakeLists.txt | 2 +- .../open_registration_extension/torch_openreg/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d22885755df..70dfbe15be1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,7 +49,7 @@ set(CMAKE_CXX_STANDARD CACHE STRING "The C++ standard whose features are requested to build this target.") set(CMAKE_C_STANDARD - 11 + 17 CACHE STRING "The C standard whose features are requested to build this target.") diff --git a/test/cpp_extensions/open_registration_extension/torch_openreg/CMakeLists.txt b/test/cpp_extensions/open_registration_extension/torch_openreg/CMakeLists.txt index 2c207ca63ea..d57ecdf38fc 100644 --- a/test/cpp_extensions/open_registration_extension/torch_openreg/CMakeLists.txt +++ b/test/cpp_extensions/open_registration_extension/torch_openreg/CMakeLists.txt @@ -6,7 +6,7 @@ include(GNUInstallDirs) include(CheckCXXCompilerFlag) set(CMAKE_CXX_STANDARD 17) -set(CMAKE_C_STANDARD 11) +set(CMAKE_C_STANDARD 17) set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_EXPORT_COMPILE_COMMANDS ON)