Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1bcf66d

Browse files
authored
Remove group norm C++ standard override (#2006)
Let torch.utils.cpp_extension choose the C++ standard for group_norm_cuda instead of forcing C++17, which is incompatible with newer PyTorch headers using C++20 helpers. Authored with gpt-5 xhigh Signed-off-by: Masaki Kozuki <[email protected]>
1 parent 466e164 commit 1bcf66d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,10 +531,9 @@ def check_cudnn_version_and_warn(global_option: str, required_cudnn_version: int
531531
+ glob.glob("apex/contrib/csrc/group_norm/*.cu"),
532532
include_dirs=[os.path.join(this_dir, "csrc")],
533533
extra_compile_args={
534-
"cxx": ["-O3", "-std=c++17"],
534+
"cxx": ["-O3"],
535535
"nvcc": [
536536
"-O3",
537-
"-std=c++17",
538537
"--use_fast_math",
539538
"--ftz=false",
540539
],

0 commit comments

Comments
 (0)