File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -523,12 +523,12 @@ def get_extensions():
523523 "-DNDEBUG" if not debug_mode else "-DDEBUG" ,
524524 "-O3" if not debug_mode else "-O0" ,
525525 "-t=0" ,
526- "-std=c++17 " ,
526+ "-std=c++20 " ,
527527 ]
528528 rocm_args = [
529529 "-DNDEBUG" if not debug_mode else "-DDEBUG" ,
530530 "-O3" if not debug_mode else "-O0" ,
531- "-std=c++17 " ,
531+ "-std=c++20 " ,
532532 ]
533533 maybe_hipify_v2_flag = []
534534 if use_rocm and detect_hipify_v2 ():
@@ -773,7 +773,7 @@ def get_extensions():
773773 extra_compile_args = {
774774 "cxx" : [
775775 f"-DPy_LIMITED_API={ min_supported_cpython_hexcode } " ,
776- "-std=c++17 " ,
776+ "-std=c++20 " ,
777777 "-O3" ,
778778 ],
779779 "nvcc" : nvcc_args
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ include(CMakeDependentOption)
99
1010project (torchao)
1111
12- set (CMAKE_CXX_STANDARD 17 )
12+ set (CMAKE_CXX_STANDARD 20 )
1313
1414if (NOT CMAKE_BUILD_TYPE )
1515 set (CMAKE_BUILD_TYPE Release)
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ include(CMakeDependentOption)
99
1010project (torchao)
1111
12- set (CMAKE_CXX_STANDARD 17 )
12+ set (CMAKE_CXX_STANDARD 20 )
1313
1414if (NOT CMAKE_BUILD_TYPE )
1515 set (CMAKE_BUILD_TYPE Release)
Original file line number Diff line number Diff line change 11all : test_lowbit
22
33test_lowbit : test_lowbit.mm ../src/OperationUtils.mm
4- clang++ -I${TORCHAO_ROOT} -O3 -std=c++17 -Wall -Wextra -o $@ $^ -framework Metal -framework Foundation
4+ clang++ -I${TORCHAO_ROOT} -O3 -std=c++20 -Wall -Wextra -o $@ $^ -framework Metal -framework Foundation
55
66run : test_lowbit
77 ./test_lowbit
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ cmake_minimum_required(VERSION 3.19)
88
99project (torchao_ops_mps_linear_fp_act_xbit_weight)
1010
11- set (CMAKE_CXX_STANDARD 17 )
11+ set (CMAKE_CXX_STANDARD 20 )
1212set (CMAKE_CXX_STANDARD_REQUIRED YES )
1313
1414if (NOT CMAKE_BUILD_TYPE )
You can’t perform that action at this time.
0 commit comments