Skip to content

Commit 070bf32

Browse files
committed
build: Update C++ standard from c++17 to c++20
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
1 parent 765bf14 commit 070bf32

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ cmake_minimum_required(VERSION 3.31.8)
2828

2929
project(tritonpythonbackend LANGUAGES C CXX)
3030

31-
# Use C++17 standard as Triton's minimum required.
32-
set(TRITON_MIN_CXX_STANDARD 17 CACHE STRING "The minimum C++ standard which features are requested to build this target.")
31+
# Use C++20 standard as Triton's minimum required.
32+
set(TRITON_MIN_CXX_STANDARD 20 CACHE STRING "The minimum C++ standard which features are requested to build this target.")
3333

3434
#
3535
# Options

0 commit comments

Comments
 (0)