From b4d6bdd91b77ce43fc8ba496bcf257d083fc92ea Mon Sep 17 00:00:00 2001 From: Misha Chornyi <99709299+mc-nv@users.noreply.github.com> Date: Thu, 10 Sep 2026 20:15:08 -0700 Subject: [PATCH] build: Update C++ standard from c++17 to c++20 (#455) Upstream PyTorch raised ATen's minimum required C++ standard from 17 to 20 (pytorch/pytorch#178150), which broke the pytorch_backend build. Align this repo's TRITON_MIN_CXX_STANDARD/CMAKE_CXX_STANDARD default with that floor for consistency across the stack. TRI-1877 (cherry picked from commit 26764b963940c48b35c004992061b77b4e0a3d2d) --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d0bcdfed..f9956f2d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,8 +28,8 @@ cmake_minimum_required(VERSION 3.31.8) project(tritonpythonbackend LANGUAGES C CXX) -# Use C++17 standard as Triton's minimum required. -set(TRITON_MIN_CXX_STANDARD 17 CACHE STRING "The minimum C++ standard which features are requested to build this target.") +# Use C++20 standard as Triton's minimum required. +set(TRITON_MIN_CXX_STANDARD 20 CACHE STRING "The minimum C++ standard which features are requested to build this target.") # # Options